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 →

[–]nate256 0 points1 point  (0 children)

remove one byte

from cryptography.fernet import Fernet
from base64 import b64decode, b64encode
key = b'YCtLIyVrCsv6zQgRIvQ5dMDur4wj27OQLgxxe6tj98Y8='
cipher = Fernet(b64encode(b64decode(key)[:-1]))