Encoding and decoding

Utilities to encode and decode zlib and base64 data.

flask_saml2.codex.decode_base64_and_inflate(b64string)

Turn a base64-encoded zlib-compressed blob back in to the original bytes. The opposite of deflate_and_base64_encode().

Return type

bytes

flask_saml2.codex.deflate_and_base64_encode(string_val)

zlib-compress and base64-encode some data. The opposite of decode_base64_and_inflate().

Return type

bytes

flask_saml2.codex.decode_saml_xml(data)

Decodes some base64-encoded and possibly zipped string into an XML string.

Return type

bytes