Skip to main content

A secure AES-GCM encryption/decryption package

Project description

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 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}")

File Encryption

# Encrypt a file
encryptor.encrypt_file("document.txt", "document.txt.encrypted")

# Decrypt a file
encryptor.decrypt_file("document.txt.encrypted", "document_restored.txt")

Key Features

  • Any Key Length: Use any key you want - short or long, it doesn't matter
  • Automatic Key Derivation: Your key is securely processed to meet encryption standards
  • Tamper Detection: Built-in integrity checking prevents data tampering
  • Memory Safe: Automatically clears sensitive data from memory

Perfect For

  • Protecting sensitive configuration files
  • Encrypting user data in applications
  • Securing local file storage
  • Adding encryption to existing projects

Requirements

  • Python 3.8 or higher

License

MIT License - Use it freely in your projects!

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

simple_encryptor-0.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_encryptor-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file simple_encryptor-0.2.0.tar.gz.

File metadata

  • Download URL: simple_encryptor-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for simple_encryptor-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d6896879d6d8c6a85c1b8c58e35cae7963e844b14fd4f4d266e680af30096b57
MD5 b5827be33df7bffba48aa59372aa7b92
BLAKE2b-256 6842086ed400d653617fd093f8b4bd1bceb60f81c9a85eb02b5f2b5a600b870f

See more details on using hashes here.

File details

Details for the file simple_encryptor-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_encryptor-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfcaeba1da067c59546c261798aad9bbc1e6e8a940e8561652fb3a570f85369e
MD5 36eb11b33b64d22505faac9175d86efe
BLAKE2b-256 e01f3398d785f9505fe06967e88ad1e556e63fbc610c976def961fb6ef9759ce

See more details on using hashes here.

Supported by

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