Skip to main content

Python+Cython wrapper around LibTomCrypt

Project description

This package is a Python 2/3 wrapper around LibTomCrypt. The API is designed to be conceptually similar to LibTomCrypt, but to be as “Pythonic” as possible.

[Read the Docs](http://mikeboers.github.io/PyTomCrypt/), and good luck!

Limitations

PyTomCrypt does not yet wrap the entirety of LibTomCrypt; this is planned in the future. Currently, this package provides:

  • symmetric ciphers
    • no CTR mode flags (page 38 of ltc PDF)

    • incomplete auth modes (EAX, but no OCB, CCM, GCM, etc.)

  • hashes

  • MACs

  • pseudo random number generators

  • pkcs5

  • RSA private/public keys
    • no separate padding functions

  • incomplete ECC

  • no DSA

Installation

To get the latest stable release (use easy_install if you don’t have pip):

$ pip install PyTomCrypt

If you already have the PyPi source distribution, you only need run:

$ python setup.py install

If you have the original source (ie. from GitHub):

# Install “mako” and “cython”; they are required to generate the C source of the primary module. $ pip install mako cython

# Grab libtomcrypt and libtommath. $ git submodule init $ git submodule update

# Preprocess the Cython sources. $ make sources

# Build the package. $ python setup.py build

# Install the module. $ python setup.py install

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

PyTomCrypt-0.9.0.tar.gz (869.0 kB view details)

Uploaded Source

File details

Details for the file PyTomCrypt-0.9.0.tar.gz.

File metadata

  • Download URL: PyTomCrypt-0.9.0.tar.gz
  • Upload date:
  • Size: 869.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyTomCrypt-0.9.0.tar.gz
Algorithm Hash digest
SHA256 1676b080041a454f72ad9da1ce105f1d32c84554e4befce3cc95ff0a9db72e76
MD5 d1645d3fa5a2c457ecfd4ff1228b60bf
BLAKE2b-256 966c3e37d19f4e245e3a965fb70f1a38dff7507aec0642510ed0b131ff8835e3

See more details on using hashes here.

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