Skip to main content

Simple symmetric GPG file encryption and decryption.

Project description

Crypro

Simple symmetric GPG file encryption and decryption

About

Crypro provides a simple interface to symmetric Gnu Privacy Guard (gpg) encryption and decryption for one or more files on Unix and Linux platforms. It runs on top of gpg and requires a gpg install on your system. Encryption is performed with the AES256 cipher algorithm.

Encryption benchmarks vs. default gpg encryption are available here with additional details for text, pdf, mp3, and png mime types.

Crypro provides a number of options including automated tar archives of multiple files prior to encryption, portable ASCII armored encryption formatting, and SHA256 hash digest generation for your encrypted files.

Documentation

Detailed documentation is available here.

Quickstart

Encrypt a File

$ Crypro sometext.txt

Encrypt with Portable ASCII Armored Format

$ Crypro --armor sometext.txt

Encrypt Multiple Files with Same Passphrase

$ Crypro sometext.txt anotherimage.jpg

Encrypt Multiple Files with Wildcard Expansion

$ Crypro *.txt

Encrypt and Generate SHA256 Hash Digest of the Encrypted File

$ Crypro --hash sometext.txt

Encrypt All Top Level Files in Multiple Directories with Same Passphrase

$ Crypro imagedir privatedir

Pack Multiple Files in a Tar Archive, Then Encrypt the Archive

$ Crypro --tar privatedir

Decrypt a File

$ deCrypro sometext.txt.crypt

Decrypt All Encrypted Files in Top Level of Directory

$ deCrypro privatedir

Decrypt Text to Standard Output Stream

$ deCrypro --stdout sometext.txt.gpg

Install

1) Install GPG

Mac OSX Users

Mac OSX users can install gpg from source, with Homebrew, or by installing the Mac GPG Tools Suite.

The Homebrew install command is:

brew install gpg

Please refer to the detailed documentation on the Gnu Privacy Guard and Mac GPG Tools suite sites for more information if you choose the source or GPG Tools approaches.

Linux Users

If gpg is not installed on your Linux distro, you can use your package manager to install it or compile and install it from the source.

2) Install Crypro

You can install Crypro with pip:

pip install Crypro

or download the Crypro source, unpack it, navigate to the top level directory, and install with the command:

python setup.py install

Options

Crypro Options

--armor | -a

Encrypt in a portable ASCII armored format

--hash

Generate SHA256 hash digest of encrypted file(s)

--space

Favor reduced file size over encryption speed

--speed

Favor encryption speed over reduced file size

--tar

Create tar archives from directories of files, then encrypt

deCrypro Options

--nountar

Do not automatically unpack tar archives after decryption

--overwrite | -o

Overwrite an existing file with the new decrypted file

--stdout | -s

Push the decrypted data to the standard output stream instead of generating a new file

Other Options

--help | -h

View the help documentation

--usage

View the usage documentation

--version | -v

View the Crypro version number

Project Contributors

Author contact information

QQ:3165856425

Email:YBL2652612315@126.com

Project details


Download files

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

Source Distribution

Crypro-2.0.3.tar.gz (208.6 kB view details)

Uploaded Source

File details

Details for the file Crypro-2.0.3.tar.gz.

File metadata

  • Download URL: Crypro-2.0.3.tar.gz
  • Upload date:
  • Size: 208.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.5.0

File hashes

Hashes for Crypro-2.0.3.tar.gz
Algorithm Hash digest
SHA256 7bfe66fd18216cec2050892b50a77a91bded9a6e62d6567815acff5ef3099a39
MD5 ce633ffe94ba6ab85438dd4bf53d8d95
BLAKE2b-256 aa643a438de8d0d0c3a89a5824e7a77acbcc7a21882a9f093d4700f20d30d8f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page