Skip to content

Encrypting and Decrypting File with Public/Private Key and Secret Key - Python

License

Notifications You must be signed in to change notification settings

cagatayozata/cryptographyPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Encrypting and Decrypting File with Public/Private Key and Secret Key - Python

i. Generation of 128-bit secret key for AES Block cipher randomly.

ii. Generation of public and private key pair for RSA Algorithm (Here we assume that this keys are owned by your friend).

iii. Encrypting a file that you choose using secret key chosen in i).

iv. Sharing this secret key using your friend’s public key.

v. Recovering the secret key using your friend’s private key.

vi. Decrypting the encrypted file to get a file shared.

Installation

Use the package manager pip3 to install foobar.

pip3 install pyopenssl
pip3 install pycrypto

Usage

python3 cryptography.py

Authors

Çağatay Özata - cagatayozata

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Encrypting and Decrypting File with Public/Private Key and Secret Key - Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages