Relative Content

Tag Archive for pythonfernet

How to make Fernet accept the key in Python?

I’m trying to do the code that automatically sets a password and encrypts archive, after that it encrypts the keys in AES and then sends it via ftp to another computer. When the computer receives that, it asks for Fernet password and just a password for an archive, that was given. But the thing is there appears to be a problem: when I try to enter the password that is given, Fernet says that something is wrong. Code:

How to make Fernet accept the key in Python?

I’m trying to do the code that automatically sets a password and encrypts archive, after that it encrypts the keys in AES and then sends it via ftp to another computer. When the computer receives that, it asks for Fernet password and just a password for an archive, that was given. But the thing is there appears to be a problem: when I try to enter the password that is given, Fernet says that something is wrong. Code: