python c-module for siphash
Switch branches/tags
Clone or download
Pull request Compare This branch is 67 commits ahead of cactus:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
siphash
.gitignore
.travis.yml
LICENSE.md
MANIFEST.in
README.rst
appveyor.yml
benchmark.py
setup.py
siphashc.c
test_siphashc.py

README.rst

siphashc

https://travis-ci.org/WeblateOrg/siphashc.svg?branch=master https://ci.appveyor.com/api/projects/status/kgeohtb6as3xd9b7/branch/master?svg=true https://api.codacy.com/project/badge/Grade/33758f86fbf44e929d85f47390093771 PyPI package

Installation

Install using pip:

pip install siphashc

Sources are available at <https://github.com/WeblateOrg/siphashc>.

Introduction

siphashc is a python c-module for siphash, based on floodberry's version.

It was merged from two versions of the module:

Usage

Python 2

>>> from siphashc import siphash
>>> siphash('sixteencharstrng', 'i need a hash of this')
10796923698683394048L

Python 3

>>> from siphashc import siphash
>>> siphash('sixteencharstrng', 'i need a hash of this')
10796923698683394048

License

Released under the MIT license. See LICENSE.md file for details.