Skip to main content

a simple encryption lib for bytes data.

Project description

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

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_encryption-0.1.0.tar.gz (2.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_encryption-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file simple_encryption-0.1.0.tar.gz.

File metadata

  • Download URL: simple_encryption-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for simple_encryption-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4069bd1cd605f1e59e4d380c23564c022830c26f48251359e9d77dcfa0b4bcf8
MD5 9854408e862ef1db5c57a1c54f7d250f
BLAKE2b-256 e3ccf2ea8742628e56cc35ecc21817bfabdcc7b34a9af8e436110a7f70165407

See more details on using hashes here.

File details

Details for the file simple_encryption-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: simple_encryption-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for simple_encryption-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2402c16c72c68d9220ee28a535007571236a003c924e381e01f3d44467fe1742
MD5 a550dd53a30461767ebcf4c02c3ee671
BLAKE2b-256 9b654b5b90745ce9dc3cce18636785a338c196b7cfe85b27bb11bc2ea35bff22

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