python bindings for aes ni
Project description
a cpython bindings to libaesni which is a binding to intel aes ni.
installation
If you want to install it yourself then you’re going to need a yasm compiler. you can get it from here https://yasm.tortall.net/Download.html
You can also download it from pip if a wheel is available for your device.
pip install pyaesni
Usage
Usage is pretty simple.
import pyaesni
encrypted = pyaesni.ige256_encrypt(data, key, iv)
everything is a buffer there. you can check the examples folder for more
available methods
ige256_encrypt ige256_decrypt ctr256_encrypt ctr256_decrypt cbc256_encrypt cbc256_decrypt
credits
wirtos for doing most of the stuff and compilation
painor me for motivating him (and some setup.py stuff)
dan for the cpython boilerplate
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyaesni-0.16.tar.gz.
File metadata
- Download URL: pyaesni-0.16.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb298c4374d402db756a5a373a834d9b199adc47d5747589c0c7ccd391f3140a
|
|
| MD5 |
fc038b58c64904f01068d3eb05ce4644
|
|
| BLAKE2b-256 |
e7417ced89adcc54cfb8e4950cc71271f9d44e4a9e09e4b0819182da2ff4dd52
|
File details
Details for the file pyaesni-0.16-cp310-cp310-manylinux2010_x86_64.whl.
File metadata
- Download URL: pyaesni-0.16-cp310-cp310-manylinux2010_x86_64.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb272bf5632aa5f123d41822577c9b3473d26bc8c6dfba839e4314b14f321fef
|
|
| MD5 |
23ff3f6a4a08eb8a252f893293c85b8d
|
|
| BLAKE2b-256 |
a3bcb9c0408d0c3d56bfb117e6e60e4f3db40a9f9a30714b6cdf6a02f534dc3a
|
File details
Details for the file pyaesni-0.16-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: pyaesni-0.16-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 10.7 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f1112ecedc362c3f21e299f8ac2011892f3de2299d29b8ef972aa72c365e605
|
|
| MD5 |
20fe19dfe9ecc8927e5174c529385d20
|
|
| BLAKE2b-256 |
38474e6eccad3d655ed706a639625fa14b97ac2e02fb80b747fd31b90a2698f7
|
File details
Details for the file pyaesni-0.16-cp39-cp39-manylinux2010_x86_64.whl.
File metadata
- Download URL: pyaesni-0.16-cp39-cp39-manylinux2010_x86_64.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ca90e292b10b9c988d2c7936d714f4ac899999fadf5c2d99b86e461cb6e3222
|
|
| MD5 |
2636b9792e3b936d45f11b9980d067fe
|
|
| BLAKE2b-256 |
5516b5c6b69e5316ce666ece3195f0f6700c8925d1322765189b552211551d5b
|
File details
Details for the file pyaesni-0.16-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: pyaesni-0.16-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 10.7 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d334df2844b714da59a032cc92367041344b79474fa7b902fea4a13b37bf8b
|
|
| MD5 |
c71e8dbc579fa6f35f55b1327d3877b9
|
|
| BLAKE2b-256 |
e0431c8c7f85666b12bb991e4ae67a9c624423ad9159871c3eec11354bfae6c2
|
File details
Details for the file pyaesni-0.16-cp38-cp38-manylinux2010_x86_64.whl.
File metadata
- Download URL: pyaesni-0.16-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4966feb087f69a9739df41c5f915f7b3878068599d4232f1fc90c90500f325b9
|
|
| MD5 |
515af0796f6c464501fac2533c9ee463
|
|
| BLAKE2b-256 |
bd50ede773699c0d8f48d75b1ec72ad1e36933453d9e105a3905013471ba8932
|
File details
Details for the file pyaesni-0.16-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: pyaesni-0.16-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 10.7 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94d3135ef57f3c2cb7f3cb58facaf0f7aab9892cc76e7e2b4888c1ed3370304f
|
|
| MD5 |
624bdb66f03cbb98bfb8407305387dba
|
|
| BLAKE2b-256 |
773c0a4df94d2b444987a1c8aa5640934bbdd9aa4816d23685983eee45a72094
|
File details
Details for the file pyaesni-0.16-cp37-cp37m-manylinux2010_x86_64.whl.
File metadata
- Download URL: pyaesni-0.16-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fa4d9758f7bf0215922d080f11da04efdbb3b488305d1b0313f94ccd7c8b555
|
|
| MD5 |
1518847d80fd890d7d867502570d25b1
|
|
| BLAKE2b-256 |
a8e3f9adaf79d9a1145d1538d04428c7c40c8a67e2148b5644fe227178149b25
|
File details
Details for the file pyaesni-0.16-cp36-cp36m-win_amd64.whl.
File metadata
- Download URL: pyaesni-0.16-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 10.7 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76be19557f3309ef0de68597c06022799147a068b0359e05e1bd55cc051ca3f1
|
|
| MD5 |
aef69867a182e968707feb6e636953b6
|
|
| BLAKE2b-256 |
2aa3d06ed739e52a005423dd1b7b2afb440466646f0b335d73f6853959f2f7b3
|
File details
Details for the file pyaesni-0.16-cp36-cp36m-manylinux2010_x86_64.whl.
File metadata
- Download URL: pyaesni-0.16-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40684580aea32730d880de226663cb8c8bc838708b8254424bf66c0b9ec11839
|
|
| MD5 |
bc62463fe9e6faee2aa5bde0308e0221
|
|
| BLAKE2b-256 |
70fb6014d54de1e3318d6f88864ce4094732e5c4d462bfececbd1e246a0e7c0b
|