Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Simple tool for encrypting and decrypting files with RSA

Project description

Crypto Playground

Place for various test of crypto libs in python



Conda - Windows

conda install -c conda-forge pycryptodomeex

pip - Linux

  • Get it from git
cd ~/_projects/github/
git clone crypto_playground
cd ~/_projects/github/crypto_playground
  • Create virtual environment
sudo apt install python3-venv
cd ~/_projects/github/crypto_playground
python3.6 -m venv env
source env/bin/activate
  • Install packages
cd ~/_projects/github/crypto_playground
git fetch
git merge
source env/bin/activate
pip install -r requirements.txt


Generate key pair

# generate private_key.pem (without password) and public_key.pem:
python generate

# generate key pair (password protected) to specific files:
python generate --privkey private_pwd.pem --pubkey public_pwd.pem --pwd mylittlesecretpwd

Encrypt & Decrypt file

# encrypt little_secret.txt to little_secret.txt.encrypted using default public_key.pem
python encrypt little_secret.txt

# decrypt little_secret.txt.encrypted to little_secret.txt.dec using default public_key.pem
python decrypt little_secret.txt.encrypted little_secret.txt.dec

# encrypt file little_secret.txt to encrypted_secret.enc  using public key public_pwd.pem
python encrypt little_secret.txt encrypted_secret.enc --pubkey public_pwd.pem

# decrypt encrypted_secret.enc to encrypted_secret.dec using password protected private key
python decrypt encrypted_secret.enc decrypted_secret.dec --privkey private_pwd.pem --pwd mylittlesecretpwd

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cryptor, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size cryptor-0.0.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page