Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 925 Bytes

README.md

File metadata and controls

36 lines (21 loc) · 925 Bytes

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