Simple Encryptor
A secure and easy-to-use AES-GCM encryption/decryption package for Python.
Why Use Simple Encryptor?
- No Key Management Hassle: Just provide any key of your choice - no strict length requirements
- Military-Grade Security: Uses AES-GCM encryption (same standard used by banks and governments)
- Zero Configuration: Works out of the box with minimal setup
- Cross-Platform: Works on Windows, Mac, and Linux
Quick Start
Installation
pip install simple-encryptor
Basic Usage
from simple_encryptor import Encryptor
# Create an encryptor with your chosen key
encryptor = Encryptor("my-secret-key-123")
# Encrypt your data
data = "Hello, World!"
encrypted = encryptor.encrypt(data)
print(f"Encrypted: {encrypted}")
# Decrypt your data
decrypted = encryptor.decrypt(encrypted)
print(f"Decrypted: {decrypted}")
Advanced Usage
from simple_encryptor import Encryptor
# Initialize with your key
encryptor = Encryptor("your-secret-key")
# Encrypt sensitive data
sensitive_data = "This is confidential information"
encrypted_data = encryptor.encrypt(sensitive_data)
# Store or transmit the encrypted data
print(f"Encrypted: {encrypted_data}")
# Later, decrypt the data
decrypted_data = encryptor.decrypt(encrypted_data)
print(f"Decrypted: {decrypted_data}")
Key Features
- Any Key Length: Use any key you want - short or long, it doesn't matter
- Automatic Key Derivation: Your key is securely hashed using SHA-256 to meet encryption standards
- AES-256-GCM Encryption: Military-grade encryption with built-in authentication
- Tamper Detection: Built-in integrity checking prevents data tampering
- Base64 Encoded Output: Encrypted data is base64 encoded for easy storage and transmission
Error Handling
The package includes comprehensive error handling:
from simple_encryptor import Encryptor
try:
encryptor = Encryptor("my-key")
encrypted = encryptor.encrypt("sensitive data")
decrypted = encryptor.decrypt(encrypted)
except ValueError as e:
print(f"Invalid input: {e}")
except Exception as e:
print(f"Encryption error: {e}")
Perfect For
- Protecting sensitive configuration data
- Encrypting user data in applications
- Securing API keys and credentials
- Adding encryption to existing Python projects
- Protecting data in transit or at rest
Requirements
- Python 3.8 or higher
- cryptography library (automatically installed)
Installation
pip install simple-encryptor
Version
Current version: 0.2.1
License
MIT License - Use it freely in your projects!
Contributing
Feel free to submit issues and enhancement requests!
Metadata
Release files for simple-encryptor 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simple_encryptor-0.2.3.tar.gz | 4.6 kB | Without provenance | Details for simple_encryptor-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_encryptor-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for simple_encryptor-0.2.3-py3-none-any.whl |
Total release size: 9.6 kB
Release files / simple_encryptor-0.2.3.tar.gz
| Download URL | simple_encryptor-0.2.3.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0a660da5bce3dcbf30fbc67eb6e8901361bd564d958b9b49cb5fad38b4e0891
|
|
BLAKE2b-256 checksum How to use checksums |
0bb947409ac837b198f539b031c1b0b8f1a4406575c0dd699015261ea189f562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Release files / simple_encryptor-0.2.3-py3-none-any.whl
| Download URL | simple_encryptor-0.2.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e06a35722a04a4f73cc5899c280c4c938981d26c6df04d311d905490d2464804
|
|
BLAKE2b-256 checksum How to use checksums |
9b7eb31a2bbe585551ab375dd1c5d66a8ef8e37002c7e46f0ebd7bf133a28536
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Security for simple-encryptor 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.