Skip to main content

simple-encryption

a simple encryption lib for bytes data.

Installation

pip install simple-encryption

Usage

from simple_encryption import AesPassphraseEncryptor

passphrase = "my_secrete_key"
original_data = b"hello world!"

# encrypt bytes data into base64 data
b64_encrypted = AesPassphraseEncryptor.encrypt(original_data, passphrase)
print("encrypted data:", b64_encrypted)

# decrypt base64 data into original bytes data
decrypted_data = AesPassphraseEncryptor.decrypt(b64_encrypted, passphrase)
assert original_data == decrypted_data

Metadata

Release files for simple-encryption 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-encryption 0.1.0
File Size Uploaded
simple_encryption-0.1.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-encryption 0.1.0
File Interpreter ABI Platform
simple_encryption-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / simple_encryption-0.1.0.tar.gz

Download URL simple_encryption-0.1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4069bd1cd605f1e59e4d380c23564c022830c26f48251359e9d77dcfa0b4bcf8
BLAKE2b-256 checksum
How to use checksums
e3ccf2ea8742628e56cc35ecc21817bfabdcc7b34a9af8e436110a7f70165407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Windows/11

Release files / simple_encryption-0.1.0-py3-none-any.whl

Download URL simple_encryption-0.1.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2402c16c72c68d9220ee28a535007571236a003c924e381e01f3d44467fe1742
BLAKE2b-256 checksum
How to use checksums
9b654b5b90745ce9dc3cce18636785a338c196b7cfe85b27bb11bc2ea35bff22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Windows/11

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page