Simple tool for encrypting and decrypting files with RSA
Project description
Crypto Playground
Place for various test of crypto libs in python
Sources
Installation
Conda - Windows
conda install -c conda-forge pycryptodomeex
pip - Linux
- Get it from git
cd ~/_projects/github/
git clone https://github.com/pavelsuk/crypto_playground 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
Usage
Generate key pair
# generate private_key.pem (without password) and public_key.pem:
python cryptorshell.py generate
# generate key pair (password protected) to specific files:
python cryptorshell.py 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 cryptorshell.py encrypt little_secret.txt
# decrypt little_secret.txt.encrypted to little_secret.txt.dec using default public_key.pem
python cryptorshell.py 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 cryptorshell.py 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 cryptorshell.py decrypt encrypted_secret.enc decrypted_secret.dec --privkey private_pwd.pem --pwd mylittlesecretpwd
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cryptor-0.0.1.tar.gz
(4.3 kB
view details)
File details
Details for the file cryptor-0.0.1.tar.gz
.
File metadata
- Download URL: cryptor-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b773e987b71c64b6b3985c4517d6a0d41aa178c19325dab64d55ea7cb5d299b |
|
MD5 | 9be00644870968146c387cb51e6342f7 |
|
BLAKE2b-256 | 3ad2249df117140d137352971d46420c387be686af88b28b77034c940f0217eb |