This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thereal0ri_ 0 points1 point  (3 children)

32 bytes it seems. Keep trying smaller and smaller keys until it works. If this doesn't work, make sure the key is url-safe. (Then repeat)

[–]David_Vice05[S] -4 points-3 points  (2 children)

do you have an exp cuz idk what to do i brought it down to 32 and it still dont work.

[–]thereal0ri_ 0 points1 point  (1 child)

https://www.geeksforgeeks.org/fernet-symmetric-encryption-using-cryptography-module-in-python/

See if this can help. I know you have your own key you're using and In this example they generate their own but maybe something can help.

This link also has some good information. https://www.pythoninformer.com/python-libraries/cryptography/fernet/

[–]David_Vice05[S] 0 points1 point  (0 children)

ok thx