unpaddedbase64

Encode and decode Base64 without "=" padding


Keywords
base64
License
Apache-2.0
Install
pip install unpaddedbase64==2.1.0

Documentation

Unpadded Base64

Latest Version

Encode and decode Base64 without "=" padding.

RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes using "=" characters. However this conveys no benefit so many protocols choose to use Base64 without the "=" padding.

Installing

pip install unpaddedbase64

Using

import unpaddedbase64
assert (unpaddedbase64.encode_base64(b'\x00')) == u'AA'
assert (unpaddedbase64.decode_base64(u'AA')) == b'\x00'