Skip to main content

Module encode

Module encode 

Source

Functionsยง

from_base64
Decode standard base64 (with or without padding) to bytes. Returns None on invalid input.
from_hex
Decode a hex string to bytes. Returns None on invalid input.
hex_to_array
Decode a hex string to a fixed-size array. Returns None on invalid input or wrong length.
to_base64
Encode bytes as standard base64 with padding.
to_hex
Encode bytes as lowercase hex string.