Skip to main content

Simple Encryption in Python.

Project description

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.

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

py-encryption-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_encryption-0.1.1-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file py-encryption-0.1.1.tar.gz.

File metadata

  • Download URL: py-encryption-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for py-encryption-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8d27e21f2b0022c9a3fec147f80de8db3cb258d14db33ee2ce4c37ebccd699e8
MD5 fc9c9f51d3de54d2c14fc2f8e6582585
BLAKE2b-256 7d5f660564bd780a4b37261a5084aeaa4d44c0cc79e50f41e70ba0d29644015d

See more details on using hashes here.

File details

Details for the file py_encryption-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for py_encryption-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ad419c0bf1431326160781fff3fe2ebf475418e7df3babea4709d2f0793b8ad9
MD5 bec7dd9a798a5e27d89ec44983b49caa
BLAKE2b-256 26e158dbc72eabc0286d9810613ce6ad13a4aa618999e46149cd0268b25b773f

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