On this page
base64.b32encode
Prev: base64.b32decode | Up: base64 | Next: base64.b32hexdecode
Rel: base64.a85decode, base64.a85encode, base64.b16decode, base64.b16encode
Ref: docs.python.org — base64.b32encode
Tags: #public #python3 #stdlib #base64
Import
import base64
from base64 import b32encode
Signature & Overview
base64.b32encode(s)
Encode the bytes-like objects using base32 and return a bytes object.
Usage
import base64
assert base64.b32encode(b"Hi") == b"JBUQ===="
Gotchas
- Human-friendly alphabet (
A-Z,2-7): Common for TOTP authenticator secrets and case-insensitive filesystems.
REPL Inspect
from base64 import b32encode
help(b32encode)
Linked from
Related notes
- tuts/python3/stdlib_module/base64 Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b32decode Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b32hexdecode Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/a85decode Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/a85encode Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b16decode Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b16encode Linked here; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib