Skip to main content

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


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.16.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distributions

pyaesni-0.16-cp310-cp310-manylinux2010_x86_64.whl (12.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

pyaesni-0.16-cp39-cp39-win_amd64.whl (10.7 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyaesni-0.16-cp39-cp39-manylinux2010_x86_64.whl (12.5 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

pyaesni-0.16-cp38-cp38-win_amd64.whl (10.7 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyaesni-0.16-cp38-cp38-manylinux2010_x86_64.whl (12.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

pyaesni-0.16-cp37-cp37m-win_amd64.whl (10.7 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyaesni-0.16-cp37-cp37m-manylinux2010_x86_64.whl (12.5 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

pyaesni-0.16-cp36-cp36m-win_amd64.whl (10.7 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

pyaesni-0.16-cp36-cp36m-manylinux2010_x86_64.whl (12.5 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page