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)
| File | Size | Uploaded | |
|---|---|---|---|
| simple_encryption-0.1.0.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|