Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

siphash-python

A Python implementation of SipHash.

The source code is under MIT license.

Usage

Import as a class:

>>> from siphash import SipHash
>>> my_hash = SipHash()

Or use specific c and d:

>>> my_hash = SipHash(c=2, d=4)

Use a 128-bit key to authenticate a string:

>>> k = 0x0f0e0d0c0b0a09080706050403020100
>>> m = 'A short message'
>>> t = my_hash.auth(k, m)
>>> hex(t)
'0xae43dfaed1ab1c00L'

About

A Python implementation of SipHash.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.