crypto
Simple symmetric GPG file encryption and decryption
What it is and what it does
crypto is a lightweight command-line wrapper around GPG that simplifies symmetric file encryption and decryption on Unix, Linux, and macOS. It exposes two main commands—crypto for encryption and decrypto for decryption—and uses AES256 as its cipher algorithm. The package supports encrypting single files or entire directories, can automatically tar multiple files before encryption, and offers ASCII-armored output and SHA256 hash generation for encrypted files.
The package requires a GPG installation on your system and has no Python runtime dependencies, making installation straightforward. It was tested against Python 2.7, 3.4, and PyPy 2.6 at release time. The project has been dormant since 2015, with minimal recent maintenance, so users should verify compatibility with their specific Python and GPG versions before relying on it in production.
Use it for:
- Encrypt sensitive files on Unix/Linux systems from shell scripts or cron jobs using a simple command-line interface.
- Batch-encrypt directories by automatically creating tar archives and encrypting them with a single command.
- Generate SHA256 hashes alongside encrypted files for integrity verification.
- Decrypt GPG-encrypted files without learning full GPG command syntax or options.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides command-line tools to encrypt and decrypt files using GPG with AES256 cipher, supporting single files, directories, and optional tar archiving before encryption.
Yes, if you need a simple GPG wrapper for basic file encryption on Unix/Linux and are comfortable with dormant maintenance. The low install friction, permissive MIT license, and zero runtime dependencies make it lightweight. However, verify Python and GPG compatibility first, since the package has not been actively maintained since 2015 and may have undiscovered issues with modern toolchains.
Install
crypto on PyPI
pip
pip install cryptouv
uv add cryptopoetry
poetry add cryptoInstalling crypto
Before you install
Low install friction with no runtime dependencies. Dormant since 2015 but repository remains unarchived; last commit in February 2024 suggests minimal maintenance activity.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe for most deployment contexts.
Quickstart
$ pip install crypto
$ crypto /path/to/file
$ decrypto /path/to/file.gpg
Requires GPG (Gnu Privacy Guard) installed and available on the system; Unix/Linux/macOS only.
Verify before relying
- Whether the package works reliably with modern Python versions beyond those tested in 2014–2015.
- Current compatibility with recent GPG versions and whether AES256 benchmarks remain relevant.
- Whether dormant status and lack of recent updates pose security or compatibility risks for new deployments.
Package facts
| License | MIT license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 4,110 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,031,084/month — #4,467 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: crypto-1.4.1-py2.py3-none-any.whl
Keywords: encryption, decryption, gpg, pgp, openpgp, cipher, AES256, crypto, cryptography, security, privacy
Tags
More Security packages
Provides Python bindings to the FreeDesktop.org…
permissive · top 1,000 on PyPI
msalMSAL for Python handles OAuth2 and OpenID…
permissive · top 1,000 on PyPI
joserfcjoserfc implements JOSE standards (JWS, JWE,…
permissive · top 1,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
argon2-cffi-bindingsProvides low-level CFFI bindings to the…
permissive · top 1,000 on PyPI
adalADAL for Python authenticates applications with…
permissive · top 1,000 on PyPI
miscreantProvides misuse-resistant authenticated…
permissive · top 5,000 on PyPI
pyAesCryptEncrypts and decrypts files and binary streams…
permissive · top 15,000 on PyPI
sopsySOPSy wraps the SOPS command-line tool to…
permissive · top 15,000 on PyPI
tinkTink provides cryptographic APIs designed to be…
permissive · top 5,000 on PyPI
sslcryptoProvides AES, ECIES, and ECDSA cryptographic…
unclear · top 15,000 on PyPI
python-gnupgProvides Python bindings to GnuPG for key…
permissive · top 5,000 on PyPI
aes-pkcs5Provides AES encryption and decryption with…
permissive · top 15,000 on PyPI
aws-encryption-sdk-cliCommand-line tool to encrypt and decrypt files…
permissive · top 15,000 on PyPI
eth-keyfileLoads, creates, and decrypts Ethereum…
permissive · top 5,000 on PyPI
msoffcrypto-toolDecrypts and encrypts Microsoft Office files…
permissive · top 5,000 on PyPI