PROGRAM TO ENCYRPT AND DECRYPT A PASSWORD USING PYTHON

 from cryptography.fernet import Fernet
gen_key=Fernet.generate_key()
fer=Fernet(gen_key)
message="password type here!!!!"
encrypted=fer.encrypt(message.encode())
print(encrypted)
decrypted=fer.decrypt(encrypted)
print(decrypted)

Comments

Post a Comment

Popular posts from this blog

PYTHON BASIC TOPICS