Instantly share code, notes, and snippets.

Embed
What would you like to do?
Decode a Flask Session cookie, given the cookie and secret key
@aescalana

This comment has been minimized.

aescalana commented Jun 2, 2017

I think it's easier and more robust to use class inheritance. Take a look at my gist:

https://gist.github.com/aescalana/7e0bc39b95baa334074707f73bc64bfe

@travisreed-wf

This comment has been minimized.

travisreed-wf commented Nov 1, 2018

itsdangerous recently switched to sha512, so depending upon which version of itsdangerous you are using you may need a hashlib.sha512 digest_method

pallets/itsdangerous@24ff676#diff-e4eb329834da3d36278b1b7d943b3bc9R11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment