Pronounced 'crypt.'
A very simple Python script that calls Shell, allowing you to encrypt files within a tree using GPG. The script is hardcoded to encrypt files with 256 bit AES.
In this example, the test/
directory is encrypted, leaving only the .gpg
files:
➜ python3 src/cli.py --path test --encrypt --delete_original --key #$MY_GPG_KEY
# Encrypting pets/dogs/inu.txt
# Encrypting pets/cats/neko.txt
# Encrypted 2 files.
Then the tree is decrypted, removing the .gpg
files:
➜ python3 src/cli.py --path test --decrypt --delete_original --key #$MY_GPG_KEY
# Decrypting pets/dogs/inu.txt.gpg
# Deleting pets/dogs/inu.txt.gpg
# Decrypting pets/cats/neko.txt.gpg
# Deleting pets/cats/neko.txt.gpg
# Decrypted 2 files.
The src/cli.py
file can be installed as the
crpyt
command using pip
.
You can install it from GitHub:
➜ pip install git+https://github.com/MolassesLover/Crpyt.git
Alternatively, from PyPi:
➜ pip install crpyt
All files within this repository are licensed under the Apache v2.0 license or MIT license at your choice.
Contributions are open, just make sure to sign your commits, otherwise, your changes will not be merged.