Skip to main content

Simple Encryption in Python (ported from https://github.com/defuse/php-encryption).

This is a class for doing symmetric encryption in Python.

Implementation

Messages are encrypted with AES-128 in CBC mode and are authenticated with HMAC-SHA256 (Encrypt-then-Mac). PKCS7 padding is used to pad the message to a multiple of the block size. HKDF is used to split the user-provided key into two keys: one for encryption, and the other for authentication. It is implemented using the Crypto and hmac modules.

Authors

This port was based on the library authored by Taylor Hornby and Scott Arciszewski.

Metadata

Release files for py-encryption 0.1.1

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

Source distribution (sdist)

Source distribution for py-encryption 0.1.1
File Size Uploaded Provenance
py-encryption-0.1.1.tar.gz 5.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py-encryption 0.1.1
File Interpreter ABI Platform
py_encryption-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.5 kB

Release files / py-encryption-0.1.1.tar.gz

Download URL py-encryption-0.1.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8d27e21f2b0022c9a3fec147f80de8db3cb258d14db33ee2ce4c37ebccd699e8
BLAKE2b-256 checksum
How to use checksums
7d5f660564bd780a4b37261a5084aeaa4d44c0cc79e50f41e70ba0d29644015d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / py_encryption-0.1.1-py2.py3-none-any.whl

Download URL py_encryption-0.1.1-py2.py3-none-any.whl
Size 7.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ad419c0bf1431326160781fff3fe2ebf475418e7df3babea4709d2f0793b8ad9
BLAKE2b-256 checksum
How to use checksums
26e158dbc72eabc0286d9810613ce6ad13a4aa618999e46149cd0268b25b773f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for py-encryption 0.1.1

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.1.1 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