GitHunt
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 cryptography

2. 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.

Languages

Python100.0%

Contributors

Created June 30, 2025
Updated June 30, 2025