SE
security007/CryptexGCM
CryptexGCM is a secure AES-GCM-based file encryption tool built in Python, designed for simplicity, speed, and strong authenticated encryption.
π CryptexGCM
CryptexGCM is a Python-based AES-GCM file encryption tool that provides secure, fast, and authenticated encryption for files. It's designed with simplicity and reliability in mind β ideal for personal or professional data protection.
β¨ Features
- β AES-GCM encryption with 256-bit keys
- β One-line usage for encrypt/decrypt
- β
Custom exception handling (
CryptexGCMException) - β File-safe output (nonce + ciphertext)
- β
Lightweight, no external dependencies except
cryptography
π Getting Started
1. Installation
Install the required dependency:
pip install cryptography2. Usage
from CryptexGCM import CryptexGCM, CryptexGCMException
cryptex = CryptexGCM("my_secure_password")
# Encrypt a file
try:
cryptex.encrypt("secret.txt", "secret.cry")
print("[β] Encryption successful.")
except CryptexGCMException as e:
print("[β] Error during encryption:", e)
# Decrypt a file
try:
cryptex.decrypt("secret.cry", "recovered.txt")
print("[β] Decryption successful.")
except CryptexGCMException as e:
print("[β] Error during decryption:", e)βNotes
CryptexGCM is not intended to replace enterprise-grade encryption, but is excellent for learning, personal data protection, and quick offline file encryption.
Make sure to remember your password β AES-GCM encryption is secure by design and cannot be reversed without the exact key.