Skip to main content

aes-gcm-txt-enc-lib

Python library for symmetric key based secure text encryption and decryption using AES-GCM.

Features

  • AES-GCM symmetric encryption for text data
  • Support for multiple key lengths (128, 192, 256 bits)
  • Easy-to-use API for encryption and decryption
  • Built on pycryptodome for cryptographic primitives

Installation

Install via PyPI:

pip install aes-gcm-txt-enc-lib

Usage Example

from aes_gcm_txt_enc_lib import AesGcmEncryptor

txt = "Hello this is text"
print("Original Text: ", txt)

# Create an encryptor with a 256-bit random key
a = AesGcmEncryptor(key_size=256)
cipher = a.encrypt(txt)
key = a.get_key()

print("Key: ", key)
print("Encrypted: ", cipher)

# Create a new encryptor with the same key for decryption
b = AesGcmEncryptor(key)
plain = b.decrypt(cipher)

print("Decrypted: ", plain)

📄 Changelog

See CHANGELOG.md for version history.

Metadata

Release files for aes-gcm-txt-enc-lib 0.2.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 aes-gcm-txt-enc-lib 0.2.0
File Size Uploaded Provenance
aes_gcm_txt_enc_lib-0.2.0.tar.gz 2.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aes-gcm-txt-enc-lib 0.2.0
File Interpreter ABI Platform
aes_gcm_txt_enc_lib-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / aes_gcm_txt_enc_lib-0.2.0.tar.gz

Download URL aes_gcm_txt_enc_lib-0.2.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2e0cc832f93b0e8a09f17e826527e4c332a6174041b5369277479c55a8f06b11
BLAKE2b-256 checksum
How to use checksums
e87e2bfa89a2624541cdb785d59c4064054bf0fdf37d97c7c4a56c1dd30c7547
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.10 Linux/4.14.141+

Release files / aes_gcm_txt_enc_lib-0.2.0-py3-none-any.whl

Download URL aes_gcm_txt_enc_lib-0.2.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b597c70e6f7bfdddcc140fddbe09884b5687897695c93bff5404102d7fa75d23
BLAKE2b-256 checksum
How to use checksums
c1a1240e3422c29579cbb952bae568d7c448519f577a31e26bb19fb14f5b5d0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.10 Linux/4.14.141+

Security for aes-gcm-txt-enc-lib 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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