Skip to content

Encrypt stream of data using public key and aes in Python 2.7.

Notifications You must be signed in to change notification settings

nonamestreet/aes_crypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aes_crypt

Encrypt stream of data using RSA key and AES in Python 2.7. You can encrypt arbitrary size data files/stream. You can use it to encrypt huge files. You can find more information here: http://stackoverflow.com/questions/7143514/how-to-encrypt-a-large-file-in-openssl-using-public-key

To Install:

Python2.7 and pycrypto is needed. Use pip to install:

pip install -r requirements.txt

To Use:

Encrypt sample_data with the public key sample_public

python aespipe.py -k sample_public < sample_data > sample_data_encrypted

Decrypt:

python aespipe.py -d -k sample_private < sample_data_encrypted

A little help:

python aespipe.py --help

You can generate the key pair using:

openssl genrsa -out mykey.pem 1024
openssl rsa -in mykey.pem -pubout > mykey.pub

About

Encrypt stream of data using public key and aes in Python 2.7.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages