ciphers.base32¶
Base32 encoding and decoding
https://en.wikipedia.org/wiki/Base32
Attributes¶
Functions¶
|
|
|
Module Contents¶
- ciphers.base32.base32_decode(data: bytes) bytes ¶
>>> base32_decode(b'JBSWY3DPEBLW64TMMQQQ====') b'Hello World!' >>> base32_decode(b'GEZDGNBVGY======') b'123456' >>> base32_decode(b'ONXW2ZJANRXW4ZZAMNXW24DMMV4CA43UOJUW4ZY=') b'some long complex string'
- ciphers.base32.base32_encode(data: bytes) bytes ¶
>>> base32_encode(b"Hello World!") b'JBSWY3DPEBLW64TMMQQQ====' >>> base32_encode(b"123456") b'GEZDGNBVGY======' >>> base32_encode(b"some long complex string") b'ONXW2ZJANRXW4ZZAMNXW24DMMV4CA43UOJUW4ZY='
- ciphers.base32.B32_CHARSET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'¶