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.1.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.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_encryptor-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 caa5dca564bb403a1be692c25d7d9458ab4dba83a19a5cab2c32856f6df2a67a
MD5 9dedcb43febc8a60c3a3c900fea8ff52
BLAKE2b-256 a052d05e8c008c947a122fc0e0dc18ec3655f1391d712d72966114b0ef464c32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_encryptor-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e9ec7eafc13d390416a3e184b03f5d5014f4e88c7c5b91a6061a50466845332
MD5 260d34ea26429e1cec5d3d21c4118041
BLAKE2b-256 9d921909bee73e4e7fa36676ede5d8502b8aef6e08975b71df972a6a25a427dd

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