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
pyaesni-0.15.tar.gz
(3.0 kB
view hashes)
Built Distributions
Close
Hashes for pyaesni-0.15-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec58765cb8671ea330a12c37df4d56d022345a147b1fe5590eda69bf17ccefb3 |
|
MD5 | d798fe57899b5ccd5c03038fe2aab750 |
|
BLAKE2b-256 | a18a5c5a75316c6a8cc9b87cbe2c76f92e257fc3919e10f202736670a790094b |
Close
Hashes for pyaesni-0.15-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb1ce94081923d8cbe8e11bb82f965c6fe369ecd4409ebd69c54b31eeb08fa3 |
|
MD5 | a8d8a9c23340e716e35fab9a6d6c2c92 |
|
BLAKE2b-256 | a1b80af5437875e457e170dceef33428aa827026a9d3ca9d94cb1468efd3b21e |
Close
Hashes for pyaesni-0.15-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a731cedfa434e37245615adb8a8befe8b3d75d9bc3b3d6ebe73cf643a78f60dc |
|
MD5 | 3c2470a648fd68b7297da98a90805ad2 |
|
BLAKE2b-256 | b2e142526272779a528a0f6cff2ca9699140605022f32804b19b242019b55152 |
Close
Hashes for pyaesni-0.15-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1926126f088405f73efd6c5b165dd725628fed644aad5df96adcadeb9584187 |
|
MD5 | 16f5b0a663e0a4a507b1e4b0e9ea1ac0 |
|
BLAKE2b-256 | 0f99b04dda6abddc8390ee0912332f7d91255dc4edd8b5eb057d022d5639278d |
Close
Hashes for pyaesni-0.15-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54712e860d7b13a40996a7126aa0d3a472aa52d3b0ecb8df541818358bbffd5f |
|
MD5 | 48d56950ae985d8b32eb329a94978fda |
|
BLAKE2b-256 | 05ff5ecb2ba326f30139dc984bd26d3aa64225867d33f6cc20257abebd5dd890 |
Close
Hashes for pyaesni-0.15-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f665559ea20491ca8a45eb95ede74866113137cdefbf8d72b36d467e481e7c18 |
|
MD5 | 9b9af775305d7ca7c6ee6f0906eefa6d |
|
BLAKE2b-256 | 06a3081e1460932f890c1114f5d94562f38e49458d010d74d898b8d5e2c945b1 |
Close
Hashes for pyaesni-0.15-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0b652b4d029176fb9e5e9e263f51e7d618d5ff27878c432b0c05f9abc068461 |
|
MD5 | c5f3419f2ba1dca7633e057a8ff96ead |
|
BLAKE2b-256 | 19152f665a2c68eb9103293d7ab9a7c826136e0332c2ffdc6f1b3f5bc5610e52 |
Close
Hashes for pyaesni-0.15-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9facaf2b58ed03b8a9aca52b00d6a2cc36adf72b0901808332431dc9710c2e73 |
|
MD5 | d653f69a02347c1cd1ad74763b5abf88 |
|
BLAKE2b-256 | 8091acd4232c6fc64c3ebc7c5976dd8f237a36cf1662cd196ed46965571f138e |