Skip to main content

Python module that encapsulates wolfSSL's crypto engine API.

Project description

https://travis-ci.org/wolfSSL/wolfcrypt-py.svg?branch=master

wolfCrypt Python, a.k.a. wolfcrypt is a Python module that encapsulates wolfSSL’s wolfCrypt API.

wolfCrypt is a lightweight, portable, C-language-based crypto library targeted at IoT, embedded, and RTOS environments primarily because of its size, speed, and feature set. It works seamlessly in desktop, enterprise, and cloud environments as well. It is the crypto engine behind wolfSSl’s embedded ssl library.

Installation

We provide Python wheels (prebuilt binaries) for OSX 64 bits and Linux 64 bits:

$ pip install wolfcrypt

To build wolfcrypt-py against a local installation of the native C wolfSSL library, use the USE_LOCAL_WOLFSSL variable. This variable should be

wolfcrypt-py can be built against a local verison of the native wolfSSL library by using pip with the USE_LOCAL_WOLFSSL variable. USE_LOCAL_WOLFSSL should be set equal to the installation path for the wolfSSL library:

$ USE_LOCAL_WOLFSSL=/path/to/wolfssl/install pip install .

If building wolfcrypt-py against a local wolfSSL library, wolfcrypt-py will attempt to do native feature detection to enable/disable wolfcrypt-py features based on how native wolfSSL has been compiled. It uses the <wolfssl/options.h> header to do feature detection.

Testing

>>> from wolfcrypt.hashes import Sha256
>>> Sha256('wolfcrypt').hexdigest()
b'96e02e7b1cbcd6f104fe1fdb4652027a5505b68652b70095c6318f9dce0d1844'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wolfcrypt, version 4.1.0.post0
Filename, size File type Python version Upload date Hashes
Filename, size wolfcrypt-4.1.0.post0-cp27-cp27m-macosx_10_14_x86_64.whl (224.6 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0-cp27-cp27m-manylinux1_x86_64.whl (234.3 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0-cp27-cp27mu-manylinux1_x86_64.whl (234.3 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0-cp34-cp34m-manylinux1_x86_64.whl (230.9 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0-cp35-cp35m-manylinux1_x86_64.whl (230.9 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0-cp36-cp36m-macosx_10_14_x86_64.whl (224.7 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0-cp36-cp36m-manylinux1_x86_64.whl (230.9 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0-cp37-cp37m-macosx_10_14_x86_64.whl (224.7 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0-cp37-cp37m-manylinux1_x86_64.whl (230.9 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0-py3.7-linux-x86_64.egg (266.5 kB) File type Egg Python version 3.7 Upload date Hashes View hashes
Filename, size wolfcrypt-4.1.0.post0.tar.gz (32.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page