Expand description
PEM armor: base64 encoding with -----BEGIN/END ...----- headers.
Functions§
- base64_
decode - Decode a base64 string. Returns
Noneon invalid input. - base64_
encode - Encode
dataas base64. - pem_
decode - Decode a PEM block with the expected label. Returns the DER bytes.
Returns
Noneif the label doesn’t match or base64 is invalid. - pem_
encode - Encode DER bytes as PEM with the given label (e.g. “RSA PUBLIC KEY”).