Instantly share code, notes, and snippets.

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

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:


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


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