Ligare.web.encryption

Libraries for encryption and decryption.

Functions

_get_serializer(secret_key[, salt, ...])

decrypt_flask_cookie(secret_key, cookie_str)

Decrypt a Flask session cookie.

encrypt_flask_cookie(secret_key, data)

Encrypt a dictionary into a Flask session cookie.

Decrypt a Flask session cookie. https://gist.github.com/babldev/502364a3f7c9bafaa6db

Return type:

Dict[str, Any]

Encrypt a dictionary into a Flask session cookie.

Return type:

str