base64.standard_b64decode
Prev: base64.encodebytes | Up: base64 | Next: base64.standard_b64encode
Rel: base64.a85decode, base64.a85encode, base64.b16decode, base64.b16encode
Ref: docs.python.org — base64.standard_b64decode
Tags: #public #python3 #stdlib #base64
Import
import base64
from base64 import standard_b64decode
Signature & Overview
base64.standard_b64decode(s)
Decode bytes encoded with the standard Base64 alphabet.
Usage
import base64
assert base64.standard_b64decode(b"aGVsbG8=") == b"hello"
Gotchas
- Explicit RFC 4648 standard alphabet (
+and/): Equivalent tob64decode(s)with noaltchars.
REPL Inspect
from base64 import standard_b64decode
help(standard_b64decode)
Linked from
Related notes
- tuts/python3/stdlib_module/base64 Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/encodebytes Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/standard_b64encode 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