MolassesLover / crpyt

An encryption command written in Python, using GPG from Shell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crpyt

Pronounced 'crypt.'

Ko-Fi Patreon PyPi

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.

Usage

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.

Installation

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

License

All files within this repository are licensed under the Apache v2.0 license or MIT license at your choice.

Contributing

Contributions are open, just make sure to sign your commits, otherwise, your changes will not be merged.

About

An encryption command written in Python, using GPG from Shell.

License:Other


Languages

Language:Python 100.0%