When base64 just isn't enough
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
base256-1.0.1.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file base256-1.0.1.tar.gz
.
File metadata
- Download URL: base256-1.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a239780703c5defafd4f49bd2cf878a79161119e7069b7cb630c4a4abc2627a |
|
MD5 | 93e446a16676e40126edeb6662a00f73 |
|
BLAKE2b-256 | 30753ab22a0721582e5817cd3e03d14d5a9fc427977037cf34c60bf8d96391b1 |
File details
Details for the file base256-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: base256-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38447bd7b2cb732d0a734628fc6bda9af86053f69a257a6d47a20bdb50bcd5d |
|
MD5 | e443c8a882af2c9306304792b12a1c05 |
|
BLAKE2b-256 | a87fea7331a2277a5121abde4c32f6d2bb6f34306df38a3e3f946221468ef2d6 |