Skip to main content

SHA-3 for Python 2.6 - 3.4

Project description

pysha3

sha3 wrapper (keccak) for Python. The package is a wrapper around the optimized reference implementation from http://keccak.noekeon.org/ . Only the optimizations for 32 and 64bit platforms are used. The optimized SSE and ARM assembly variants are ignored for now.

The module is targeted for inclusion in Python 3.4, see http://bugs.python.org/issue16113

Usage

>>> import sha3
>>> s = sha3.sha3()
>>> s.name
'sha3_512'
>>> s.digest_size
64
>>> s.update(b"data")
>>> s.hexdigest()
'1065aceeded3a5e4412e2187e919bffeadf815f5bd73d37fe00d384fe29f55f08462fdabe1007b993ce5b8119630e7db93101d9425d6e352e22ffe3dcb56b825'

The module contains the constructors sha3_228(), sha3_256(), sha3_384 and sha3_512(). sha3() is an alias for sha3_512().

Project details


Download files

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

Source Distributions

pysha3-0.1.zip (49.3 kB view hashes)

Uploaded Source

pysha3-0.1.tar.gz (38.3 kB view hashes)

Uploaded Source

Built Distributions

pysha3-0.1.win-amd64-py3.3.exe (270.1 kB view hashes)

Uploaded Source

pysha3-0.1.win-amd64-py3.2.exe (272.5 kB view hashes)

Uploaded Source

pysha3-0.1.win-amd64-py2.7.exe (272.0 kB view hashes)

Uploaded Source

pysha3-0.1.win-amd64-py2.6.exe (272.3 kB view hashes)

Uploaded Source

pysha3-0.1.win32-py3.3.exe (205.7 kB view hashes)

Uploaded Source

pysha3-0.1.win32-py3.2.exe (210.9 kB view hashes)

Uploaded Source

pysha3-0.1.win32-py2.7.exe (210.9 kB view hashes)

Uploaded Source

pysha3-0.1.win32-py2.6.exe (211.2 kB view hashes)

Uploaded Source

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