Skip to content

Commit

Permalink
python encryption code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Mishraji authored Oct 31, 2020
1 parent 7a69614 commit e0ba621
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions encrypt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'''
open cmd and type
pip install cryptography
'''




from cryptography.fernet import Fernet
gen_key=Fernet.generate_key()
fer=Fernet(gen_key)
msg="data" #any data
encrypted=fer.encrypt(msg.encode())
print(encrypted)

0 comments on commit e0ba621

Please # to comment.