On this page
base64.b32hexdecode
Prev: base64.b32encode | Up: base64 | Next: base64.b32hexencode
Rel: base64.a85decode, base64.a85encode, base64.b16decode, base64.b16encode
Ref: docs.python.org — base64.b32hexdecode
Tags: #public #python3 #stdlib #base64
Import
import base64
from base64 import b32hexdecode
Signature & Overview
base64.b32hexdecode(s, casefold=False)
Decode the base32hex encoded bytes-like object or ASCII string s.
Usage
import base64
enc = base64.b32hexencode(b"Hi")
assert base64.b32hexdecode(enc) == b"Hi"
Gotchas
- Requires Python 3.10+: Uses RFC 4648 Extended Hex Alphabet (
0-9,A-V), preserving lexicographical sort order.
REPL Inspect
from base64 import b32hexdecode
help(b32hexdecode)
Linked from
Related notes
- tuts/python3/stdlib_module/base64 Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b32encode Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b32hexencode 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