To prevent reinventing the wheel while creating a PEP-272 interface for a new block cipher encryption, this library aims to create an extensible framework for new libraries.
Currently following modes of operation are supported:
ECB
CBC
CFB
OFB
CTR
The PGP mode of operation is not supported. It may be added in the future.
Example
In this example encrypt_aes(key, block) will encrypt one block of AES while decrypt_aes(key, block) will decrypt one.
>>> from pep272_encryption import PEP272Cipher, MODE_ECB >>> class AESCipher: ... """ ... PEP-272 cipher class for AES ... """ ... block_size = 16 ... ... def encrypt_block(self, key, block, **kwargs): ... return encrypt_aes(key, block) ... ... def decrypt_block(self, key, block, **kwargs): ... return decrypt_aes(key, block) ... >>> cipher = AESCipher(b'\00'*16, MODE_ECB) >>> cipher.encrypt(b'\00'*16) b'f\xe9K\xd4\xef\x8a,;\x88L\xfaY\xca4+.'
License
This project is CC0 licensed (= public domain).
Metadata
Release files for pep272-encryption 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pep272-encryption-0.4.tar.gz | 14.4 kB | Without provenance | Details for pep272-encryption-0.4.tar.gz |
Built distributions (wheels)
Total release size: 243.4 kB
Release files / pep272-encryption-0.4.tar.gz
| Download URL | pep272-encryption-0.4.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8635cf74ca9488808d367b3c4d355fb1a1c5ec3ffd02a685ec3f7b19a12bc550
|
|
BLAKE2b-256 checksum How to use checksums |
0ab80bc2f973306e09316fa6a00bf0c4740ae35b52e78c5e34cdd656a4abc0b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-py2.pp35.pp36.pp37.pp38.pp39-none-any.whl
| Download URL | pep272_encryption-0.4-py2.pp35.pp36.pp37.pp38.pp39-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | PyPy 3.5 PyPy 3.6 PyPy 3.7 PyPy 3.8 PyPy 3.9 Python 2 |
|
SHA-256 checksum How to use checksums |
c448584f1ba3cfb82b1e17fbf72f6f4a37b605feec14ee2ef8b9a41841084c61
|
|
BLAKE2b-256 checksum How to use checksums |
a88220d9681012c263c5eaca4d214737a2c6a63b156677067265cf6399cd4cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-cp35-abi3-win_amd64.whl
| Download URL | pep272_encryption-0.4-cp35-abi3-win_amd64.whl |
|---|---|
| Size | 18.2 kB |
| Tags | CPython 3.5 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0b506f09cb1411989578909f87bf2c0ff08a897b6d9092c44bc2a26cc40bc9bd
|
|
BLAKE2b-256 checksum How to use checksums |
6c7c15329ff8d9a7c9654d064753dc896ba65e7977875e25330a12644295eb93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-cp35-abi3-win32.whl
| Download URL | pep272_encryption-0.4-cp35-abi3-win32.whl |
|---|---|
| Size | 17.8 kB |
| Tags | CPython 3.5 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
e8059126cc8e635b9d3f059e66dd79230197c75badac96c43465bd6f30554e82
|
|
BLAKE2b-256 checksum How to use checksums |
cf90985dcdb755983200e5e274696886551a879d2820e2b576d1dd2deae14d77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-cp35-abi3-manylinux2014_s390x.whl
| Download URL | pep272_encryption-0.4-cp35-abi3-manylinux2014_s390x.whl |
|---|---|
| Size | 26.1 kB |
| Tags | CPython 3.5 Linux glibc 2.17+ IBM System/390x abi3 |
|
SHA-256 checksum How to use checksums |
22933a27b619c19d336ff9c1e88ec04f424d15bc31e1625f81d94fa2f53094fd
|
|
BLAKE2b-256 checksum How to use checksums |
eb823fb508a2154212e1c9b2d662b60070cc90961827abdc20a106a6aa6776ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-cp35-abi3-manylinux2014_ppc64le.whl
| Download URL | pep272_encryption-0.4-cp35-abi3-manylinux2014_ppc64le.whl |
|---|---|
| Size | 27.1 kB |
| Tags | CPython 3.5 Linux glibc 2.17+ PowerPC 64-le abi3 |
|
SHA-256 checksum How to use checksums |
5d285fbedf6f4535b389628c9abc6a2cbf2030763b48e638c5e92bb26f7fd138
|
|
BLAKE2b-256 checksum How to use checksums |
0326d7784baffe4a210c09bca0ace005f46870b5d480149e9993d859b79aa95a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-cp35-abi3-manylinux2014_aarch64.whl
| Download URL | pep272_encryption-0.4-cp35-abi3-manylinux2014_aarch64.whl |
|---|---|
| Size | 27.0 kB |
| Tags | CPython 3.5 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
42825bf72446c1db781b2d48f033603089c87c4585e219602fd25390baea2bf3
|
|
BLAKE2b-256 checksum How to use checksums |
5d7967f8efa69ac867742fad643bc135310a021f9b06063c65f99e1108ceddc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-cp35-abi3-manylinux1_x86_64.whl
| Download URL | pep272_encryption-0.4-cp35-abi3-manylinux1_x86_64.whl |
|---|---|
| Size | 21.5 kB |
| Tags | CPython 3.5 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a23f29e134c2a85d4d24b32f8b632d4f31ec191dcb9f3691f56bb1ade08cd466
|
|
BLAKE2b-256 checksum How to use checksums |
77f304d5733c196f47b2f82877ee55b5517b98b3f58aec9d2027e83234ce679d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-cp35-abi3-manylinux1_i686.whl
| Download URL | pep272_encryption-0.4-cp35-abi3-manylinux1_i686.whl |
|---|---|
| Size | 21.1 kB |
| Tags | CPython 3.5 Linux glibc 2.5+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
8cd052486ca58c266daa873b6ecf741cedf04712b1a67a231238639f035519bf
|
|
BLAKE2b-256 checksum How to use checksums |
79a27c2a99998c2bbaf98bb1463a21be35577abaaf16eee514fb4d2ebaf431b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-cp35-abi3-macosx_10_9_universal2.whl
| Download URL | pep272_encryption-0.4-cp35-abi3-macosx_10_9_universal2.whl |
|---|---|
| Size | 16.8 kB |
| Tags | CPython 3.5 abi3 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
13077d4d34bcd492ae6b8ee9da40cc1c7fdd6dc3e0a9ad4b220bafcdce9c81ee
|
|
BLAKE2b-256 checksum How to use checksums |
0f187ab2f74dc36c43da926cf4d3036be1b64ccd6931351fcc5511e645c7cbfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / pep272_encryption-0.4-cp35-abi3-macosx_10_6_intel.whl
| Download URL | pep272_encryption-0.4-cp35-abi3-macosx_10_6_intel.whl |
|---|---|
| Size | 16.6 kB |
| Tags | CPython 3.5 abi3 macOS 10.6+ Intel (x86-64, i386) |
|
SHA-256 checksum How to use checksums |
eb82c71de1b6a4345b6eca242dcccf8b7528f8b62e19d0e23934056ac6b14fd2
|
|
BLAKE2b-256 checksum How to use checksums |
b6225c04f8531b4daefb07e7adbd9f266cf261df764264fc646404e7c2dd5378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Security for pep272-encryption 0.4
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.