Codec
Functions for encoding and decoding data as Base64 and hexadecimal strings.
Definitions
Decodes the given Base64 string s to bytes.
Returns Err if s is not valid Base64.
Decodes the given Base64 string s to a UTF-8 string.
Returns Err if s is not valid Base64.
Decodes the given hex string s to bytes.
Returns Err if s is not a valid hex string.
Decodes the given hex string s to a UTF-8 string.
Returns Err if s is not a valid hex string.
Encodes the given string s (as UTF-8 bytes) as a Base64 string.