Socket
Book a DemoInstallSign in
Socket

pyaesni

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyaesni

python bindings for aes ni

0.16
pipPyPI
Maintainers
1

pyaesni

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.

.. code:: python

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

.. _wirtos: https://github.com/Wirtos
.. _painor: https://github.com/painor
.. _dan: https://github.com/delivrance

Keywords

aesni encryption crypto decryption ige

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.