base256
When base64 just isn't enough
Installation
From PyPI
pip3 install base256
From GitHub
pip3 install git+https://github.com/donno2048/base256
Usage
Please only use even-length hexadecimal values.
In Python
from os import remove
from base256 import encode, decode, encode_hex, decode_hex, encode_file, decode_file, encode_string, decode_string
print(encode('123456789abcdef0'))
print(decode('ĒĴŖŸƚƼǞǰ'))
print(encode_hex(0x123456789abcdef0))
print(decode_hex('ĒĴŖŸƚƼǞǰ'))
print(hex(decode_hex('ĒĴŖŸƚƼǞǰ')))
print(encode_file('README.md'))
print(decode_file('ģĠŢšųťIJĵĶĊĊŗŨťŮĠŢšųťĶĴĠŪŵųŴĠũųŮħŴĠťŮůŵŧŨĊĊģģĠʼnŮųŴšŬŬšŴũůŮĊĊģģģĠņŲůŭĠŐŹŐʼnĊĊŠŠŠųŨĊŰũŰijĠũŮųŴšŬŬĠŢšųťIJĵĶĊŠŠŠĊĊģģģĠņŲůŭĠŇũŴňŵŢĊĊŠŠŠųŨĊŰũŰijĠũŮųŴšŬŬĠŧũŴīŨŴŴŰųĺįįŧũŴŨŵŢĮţůŭįŤůŮŮůIJİĴĸįŢšųťIJĵĶĊŠŠŠĊĊģģĠŕųšŧťĊĊŐŬťšųťĠůŮŬŹĠŵųťĠťŶťŮĭŬťŮŧŴŨĠŨťŸšŤťţũŭšŬĠŶšŬŵťųĮĊĊģģģĠʼnŮĠŐŹŴŨůŮĊĊŠŠŠŰŹĊŦŲůŭĠůųĠũŭŰůŲŴĠŲťŭůŶťĊŦŲůŭĠŢšųťIJĵĶĠũŭŰůŲŴĠťŮţůŤťĬĠŤťţůŤťĬĠťŮţůŤťşŨťŸĬĠŤťţůŤťşŨťŸĬĠťŮţůŤťşŦũŬťĬĠŤťţůŤťşŦũŬťĬĠťŮţůŤťşųŴŲũŮŧĬĠŤťţůŤťşųŴŲũŮŧĊŰŲũŮŴĨťŮţůŤťĨħıIJijĴĵĶķĸĹšŢţŤťŦİħĩĩĊŰŲũŮŴĨŤťţůŤťĨħDŽƒDŽƴDžƖDžƸdžƚdžƼLJƞDŽƏħĩĩĊŰŲũŮŴĨťŮţůŤťşŨťŸĨİŸıIJijĴĵĶķĸĹšŢţŤťŦİĩĩĊŰŲũŮŴĨŤťţůŤťşŨťŸĨĩĩĊŰŲũŮŴĨťŮţůŤťşŦũŬťĨħŒŅŁńōŅĮŭŤħĩĩĊŰŲũŮŴĨŤťţůŤťşŦũŬťĨĬĠħŴťŭŰħĩĩĊŲťŭůŶťĨħŴťŭŰħĩĊŰŲũŮŴĨťŮţůŤťşųŴŲũŮŧĨħňťŬŬůĬĠŷůŲŬŤġħĩĩĊŰŲũŮŴĨŤťţůŤťşųŴŲũŮŧĨħħĩĩĊŠŠŠĊĊģģģĠʼnŮĠŴŨťĠţůŭŭšŮŤĠŬũŮťĊĊŠŠŠųŨĊŢšųťIJĵĶĊŠŠŠĊ', 'temp'))
remove('temp')
print(encode_string('Hello, world!'))
print(decode_string('ňťŬŬůĬĠŷůŲŬŤġ'))
In the command line
base256
Metadata
Release files for base256 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| base256-1.0.1.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| base256-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / base256-1.0.1.tar.gz
| Download URL | base256-1.0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a239780703c5defafd4f49bd2cf878a79161119e7069b7cb630c4a4abc2627a
|
|
BLAKE2b-256 checksum How to use checksums |
30753ab22a0721582e5817cd3e03d14d5a9fc427977037cf34c60bf8d96391b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / base256-1.0.1-py3-none-any.whl
| Download URL | base256-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f38447bd7b2cb732d0a734628fc6bda9af86053f69a257a6d47a20bdb50bcd5d
|
|
BLAKE2b-256 checksum How to use checksums |
a87fea7331a2277a5121abde4c32f6d2bb6f34306df38a3e3f946221468ef2d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for base256 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.