Streaming-capable SipHash Implementation
Project description
This modules provides a C-based implementation of SipHash with an interface compatible with the hash functions provided by the hashlib standard library module. Only SipHash24 is currently implemented. For API documentation, see the hashlib documentation and the docstrings of the siphahs24 class and its methods.
This module differs from other similar modules by providing a streaming-capable implementation and an interface compatible to the hash functions provided by the hashlib standard library module and by providing binary wheels for all supported Python releases on the most common platforms. More platforms can be added to the build job as needed.
Following the hashlib interface, the return value of the digest() method is a bytes object. It can be easily converted to an int with minimal overhead:
integer = int.from_bytes(siphash24(b'spam').digest(), 'little')
The SipHash implementation is copied, with minimal modifications to allow compilation with MSCV, from the c-siphash library, in turn based on the reference implementation of SipHash, written by Jean-Philippe Aumasson and Daniel J. Bernstein, and released to the Public Domain. This module is distributed with the same license as the c-siphash library: Apache-2.0 or LGPL-2.1-or-later, see AUTHORS for details.
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
Built Distributions
Hashes for siphash24-1.0.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06fc159d4ca52fd8bed88e22c955b4b48fcf68e34958ff2abf5e82ffeed29602 |
|
MD5 | 61b939fde3827800ba696fe6a12fc916 |
|
BLAKE2b-256 | 707bd5c0d118f915ce74bb4e3ec157c6bbe2c5ee2235a5f01ec7c7f621184853 |
Hashes for siphash24-1.0.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14cea99dd5eb32d3f9eae1f0fd0b221ee1643648cac3a060c5dc5eac96fd3a73 |
|
MD5 | 20a7c3674aa317b2870252d5e6371158 |
|
BLAKE2b-256 | 948e9d292cc4b9f99fc1cc2cc61af0954cec9e80a3813abdb20c19364cdb4022 |
Hashes for siphash24-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 713ab5eaa47c54ab92687b087b0aee95ad65bf0f3ad6102feb4d99acccdf4f72 |
|
MD5 | 07656acab22259370a5637ee3e8f5953 |
|
BLAKE2b-256 | 5db6a743d10b3361dc9c01c2ec426868e4d9a439cc2cfdbfa7a727b3b5126987 |
Hashes for siphash24-1.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1604553d9029354fb7e33d4767c1bf0b882dd7ba2924e3db3c7fef31b1d8a76f |
|
MD5 | bec2edcc9072d6b57f2f4e1176e0edb9 |
|
BLAKE2b-256 | 8ad7f66739be3c8f01db157cb31b0a85621904f44a4e47d1db34b77ec9262a13 |
Hashes for siphash24-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e1069aeb136d4c003ba534c1d9e4005ee08712fe0010fd9217f397f133b9fe4 |
|
MD5 | 0f0c65c8fc41849224ee815870d9b65c |
|
BLAKE2b-256 | b41c6dedeb791706d6a6bd25b763f2d2d661046f9cc4f276acca30f284348810 |
Hashes for siphash24-1.0.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9947aca361fdd5b977baecfd0ad54da1238e8d5d7d644481498ba76a6e085b02 |
|
MD5 | 18afa551e2a07b0f755769e13a4ca987 |
|
BLAKE2b-256 | 29817d0d21b5ab1d4dbefb07b6f075a0feab8533a8178d7a62bcd03d6f5d6e1d |
Hashes for siphash24-1.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7afe966c1e127ea2a3571e29e7d7015c31e940eadd43429a49c0244884692ef2 |
|
MD5 | d20607b130293c24656a88b7c4050a4c |
|
BLAKE2b-256 | 50fd12eaeece9da6822caaf92ef4bc1c35a8b958174e22374490fdc8b1073dcc |
Hashes for siphash24-1.0.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d97361ee58c14f47719903142266558b33278f9a90a154d715cd53f2a8743f74 |
|
MD5 | be4a25ee4268d75c3c5d3cc327016b4f |
|
BLAKE2b-256 | 994e9a621b7b62c6e799df0fb9f20bb75a66081f9f5ee4080add4ec46f82ab26 |
Hashes for siphash24-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eda893f1de286b238c03c98a7d74177a8301b51bb0e6455f80416475bafdbdeb |
|
MD5 | 15d2862c132bbc11ef6514632ff8d908 |
|
BLAKE2b-256 | 7e7c08771b4c751758796ce6491e3524d10d715e069de4f1dfe38c0c236fda54 |
Hashes for siphash24-1.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f131a50a352ab4dbd9564c7d90d3fe64430f3bdecea1b849ffa60b7c96dbb90 |
|
MD5 | 28be68a3cc5acccbafb277480de0c677 |
|
BLAKE2b-256 | aef20e317e1f04f5b8941ac09a2c4e655a0939eae81c1d3802fa845453225d7c |
Hashes for siphash24-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d17af8b8f3fef40c91f2f1c255b9eadf91eadce20ba422b59907f201a19cd609 |
|
MD5 | b1bc78fa31334d8d39b872889577cd41 |
|
BLAKE2b-256 | 5641411a01118155a26314ece5e6984800440609ab39505eaac360e616de9f54 |
Hashes for siphash24-1.0.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 122e3d7490201166ba672ca88e2acad2a0488bb1d6396b0a90965c7cd3800f65 |
|
MD5 | 4b1dbd1f2f1e8f815008789299b16f14 |
|
BLAKE2b-256 | 20bd5d7ef06c12901fa210e7159f202ea678d487c445bfd6fbb4865d046c37cf |
Hashes for siphash24-1.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90265686d0ad75273dda75c88604704a503a6746ffc30dfe41de4529af5b85eb |
|
MD5 | 1cee47843b164d408da123162cfe2f9c |
|
BLAKE2b-256 | 9b05b5f93cdf1bd1c2f09a415c5ea38dae3dd37c23a7a8cfee2ee4aaf4a93b31 |
Hashes for siphash24-1.0.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2711d2cbbcafa1a3e4b2895a47e35017e21a1c3530ac8f5277bd35be8e2b20c1 |
|
MD5 | 45128acbc65576205d1f61598ab71527 |
|
BLAKE2b-256 | a94baa7234961cabca0de20724472144e25a743124565f398e9e3bfe954157e6 |
Hashes for siphash24-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b1a663b1d9270a012c6e026eb083cbaf38e1fc8912052beccb6ee0ddd676b71 |
|
MD5 | 0ade45cd9d1625ebf19292b77443ace1 |
|
BLAKE2b-256 | 01783ed4a48d5ba13c127ecc7a521b983c8a945d9449271a24fa865a4c0b7924 |
Hashes for siphash24-1.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc3e82b4751038020b49f37381adb2f254ef0e8eedd916070bf479ec4f06ac4b |
|
MD5 | ca09faa70380bf064028ddf358b514b7 |
|
BLAKE2b-256 | 5b1002927d02c416fea2c3574df14836fef68d6c17c3753d7a90884566fcdb58 |
Hashes for siphash24-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f67285f4a3b6fd438366f63d530ea4ede8892d0efd081289c3902fd7805b26fe |
|
MD5 | e182f50513be1a44544c7c03f89d824b |
|
BLAKE2b-256 | 07638f447b9e099964daefa4e08da0e667b1ac1c833ba7d4681f43cb02c721e8 |
Hashes for siphash24-1.0.1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6347ceb1f1c52ff018605a3c3236bd9072fe1533ce59f88933999d19e8f1561 |
|
MD5 | bd3dca76e19a7b4a98869edcb1829c19 |
|
BLAKE2b-256 | ef6bec24f2c89f7da7b9c5ad2612df3c7288fba86de41aae78da642589539dae |
Hashes for siphash24-1.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f1ee2e45880f2813cdb79191bb68b2143f7c6df6504ca935299fea264452487 |
|
MD5 | a508453cc8a01c23322b45637900223a |
|
BLAKE2b-256 | d3a1e1beb31cd8801615ebd7cab20363f22457d52ddd9e788b7cdb803bad803e |
Hashes for siphash24-1.0.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a97b92e444069006b6082e32c678b7cc94b140301ee8868b8b4ff549e7020fd6 |
|
MD5 | 8faac944cd0ebb4555886fdbeaae80c9 |
|
BLAKE2b-256 | 3fcb49346986a11d05683f6675cd5a2412d4b47925b89cd63184637e18282b56 |
Hashes for siphash24-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15606b3d1cc22e8d4da0d410f102796276945ba5ed48b46e4b418f743b6250d0 |
|
MD5 | 4c56ce4e3bfe551dd91a6861ca0d2fb7 |
|
BLAKE2b-256 | 6bd0f0db0f0143af923dfd2b0e5bc61cfd049ee7133c0ad35e7e903751cbc32b |
Hashes for siphash24-1.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcb22a9ce659c53f8ecc7dfb78a015616d9acfdf5e1e8846ea1f4ffd46d3cc6a |
|
MD5 | df46e0af5efa2e1cef2f196e0738d768 |
|
BLAKE2b-256 | 78c3f84daa1bf77e057e8dd2550c54307c6d4c0361cb7f13b6f0356ef8c9b10c |
Hashes for siphash24-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ee9bd66b7b9ce27f3f27c6ddcdc94c74600a22a38d4b3c31929e30ea32c5a6c |
|
MD5 | c37137e8d0e0a52cd80f1db90ff909e4 |
|
BLAKE2b-256 | 61ef597e47f82d927a786fb8b86ede24774b44f78da6833d350436f311504f85 |
Hashes for siphash24-1.0.1-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 083e0b148eb033e9e7fd9a1117f9f379789c35fc6bf361ec28efad146b03cae5 |
|
MD5 | fc0c23c94abfa27ddba8f56ada8c6a56 |
|
BLAKE2b-256 | f3042584e8a4eeb65211cc1d74e6f917b5824151eb6288f9b9c692dbac405a72 |
Hashes for siphash24-1.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 459263a480e629b1f4d3b3772ff1761830dd47b48dc68cee9ed7a96039dd945a |
|
MD5 | 22b3273700266e54f323fbb21b32e93e |
|
BLAKE2b-256 | f046da7aa6436557963b19fe8e5fefe4b60382ee5cc0877c717d84b9cb7bc968 |
Hashes for siphash24-1.0.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95e0ec0631335faf2ca6f38ea8fc11d901db015d95744d4c0a1005a577a30608 |
|
MD5 | a7e1ce3654eefdcd6213126fe858e0ef |
|
BLAKE2b-256 | d3f0edc19bfa9aea6723e93822819f7e2aef47863074f3ecb670c8a883496468 |
Hashes for siphash24-1.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee7db9f2a6bc177552ead21b55ce4927eddebb605571db103e56122cf437f5fe |
|
MD5 | b5e75328e1f4f0fd35dcd11599d4e7c5 |
|
BLAKE2b-256 | 70c50e92191039a5d4d19d95b6cfcf97e5683e6c72a118fc8165a8174e23cc99 |
Hashes for siphash24-1.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4923cc66daa3c4ae7d9ea2db2de41b3018931060286c56842daab2cbdf43033b |
|
MD5 | f65b24918fdafd674daebdc3727b7e37 |
|
BLAKE2b-256 | 3c9c8605b403cc4dd0508b5f7ca7ac872dad46e27c94d7fac2214627f9fae6d5 |
Hashes for siphash24-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14e17a7f92ef8e6d75854b89e550b6291d5d57cddf487a8587fb8607ef9b011d |
|
MD5 | d588af7d1832a0f316e9b4b2b22475b9 |
|
BLAKE2b-256 | 74e3cce250dd7685aec7687bd600441b35f98d122aca71ab25d45779c6ea2199 |