Encode and decode Base64 without "=" padding
Project description
Encode and decode Base64 without “=” padding.
RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes using “=” characters. However many protocols choose to omit the “=” padding.
Installing
python3 -m pip install unpaddedbase64
Using
import unpaddedbase64
assert (unpaddedbase64.encode_base64(b'\x00')) == 'AA'
assert (unpaddedbase64.decode_base64('AA')) == b'\x00'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unpaddedbase64-2.0.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for unpaddedbase64-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25583124f0baf80dedae5d76aad6a1ae228821459e87a1eccb91e61abfa4d69f |
|
MD5 | 56b7733d983f52b16ed6742db4333751 |
|
BLAKE2b-256 | cf24f5ae001d09aaa7e0732163e63ebdf8b06bc8f1f9df5bfeb251e143c12d0e |