Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

@aescalana

This comment has been minimized.

Copy link

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.

Copy link

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

@naamancampbell

This comment has been minimized.

Copy link

commented Aug 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.