Kylacoin Flex hashing (C extension)
Project description
FlexHash
A fast Python extension module implementing the Flex hashing algorithm used by Kylacoin and Lyncoin cryptocurrencies.
What is FlexHash?
FlexHash is a high-performance cryptographic hash function that combines multiple proven algorithms including SHA3, CryptoNight variants, and Lyra2. It's specifically designed for blockchain applications requiring secure and efficient hashing.
Installation
Install from PyPI (recommended):
pip install flexhash
Or visit the PyPI project page for more details.
Quick Start
import flexhash
# Hash some data
data = b"Hello, World!"
result = flexhash.hash(data)
print(f"Input: {data}")
print(f"Hash: {result.hex()}")
# Output: Hash: 7a8b9c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b
API Reference
flexhash.hash(data: bytes) -> bytes
Computes the Flex hash of the input data.
Parameters:
data(bytes): The data to hash
Returns:
bytes: 32-byte hash digest
Example:
import flexhash
# Basic usage
hash_output = flexhash.hash(b"example data")
assert len(hash_output) == 32
# Hash is deterministic
hash1 = flexhash.hash(b"test")
hash2 = flexhash.hash(b"test")
assert hash1 == hash2
Requirements
- Python 3.8 or later
- Works on Windows, Linux, and macOS
License
This project is licensed under the terms specified in the LICENSE file.
Related Projects
Links
- PyPI: https://pypi.org/project/flexhash/
- Source Code: https://github.com/cdonnachie/flexhash
- Issues: https://github.com/cdonnachie/flexhash/issues
FlexHash is a cryptographic library for blockchain applications. Use responsibly and verify the implementation for your specific security requirements.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flexhash-1.0.0.tar.gz.
File metadata
- Download URL: flexhash-1.0.0.tar.gz
- Upload date:
- Size: 791.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
825a7e8a64553cdaced0c5e056b432c25dd3a1d5130b5d35ef9a354dda66f7f5
|
|
| MD5 |
be5f143210c464f022c14e680fbc9137
|
|
| BLAKE2b-256 |
e0c90736cd16f1f8f268ebe32d5abadcbc27c87dd3e58d20f621f7b8e5ac3622
|
File details
Details for the file flexhash-1.0.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
261238d8f5b9ed9520832d329a8df8984fae7b3e5c5f8a8cfe7528cca8400037
|
|
| MD5 |
1849703980a2555cb49907e0c073bb60
|
|
| BLAKE2b-256 |
106d9d7e46cf6389b63cd4e350b40df0e88fcf7fc1e36b4072b1c3f9f2c5f80f
|
File details
Details for the file flexhash-1.0.0-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ff58f5946b0112c2eceb5653e3e289bfdfd9211fe497af0a008601113e62d4b
|
|
| MD5 |
9afa44ce3231cb3e14ef29d9dae60783
|
|
| BLAKE2b-256 |
80b25504d0e26700c1e87e1fc70f1b28e4cd575038d3db8668ac0bbb63cdde23
|
File details
Details for the file flexhash-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e919c73b953cb95a49773a7c807fb6536f25eeb39d3ffff75c9432582efbb8c0
|
|
| MD5 |
005db92264f6f2cb2e3c07880555a6f2
|
|
| BLAKE2b-256 |
ddaf4130fc5391c323d3dcb87b8a14486d0a1620082e8be118c6cedad304a59a
|
File details
Details for the file flexhash-1.0.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebbb07e44152bf08c85021934d6c30e30aaacd128a05a9cc16fc3499e2622ffc
|
|
| MD5 |
dbc3ccc6db495a0d3009405df42a2000
|
|
| BLAKE2b-256 |
5338a76c110b7a2a14e345c4d7ed4e9e88b73de0641579ec3f5791a53e5eec69
|
File details
Details for the file flexhash-1.0.0-cp312-cp312-macosx_10_9_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp312-cp312-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4371f7f0a2d98c9f1704ad6a46d5ba968f7ca763cf24b6bb15832f5a22b77bbc
|
|
| MD5 |
ba275013e592b5fa6dbb96cb4931ef16
|
|
| BLAKE2b-256 |
fa312208d5a1e91ed74a0aa1cb869e983de6fe0a72a154fd69c8d42eb915276b
|
File details
Details for the file flexhash-1.0.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29b9919ddca06207f37967601893d051eb13ce175d98696a6fbd169876317c34
|
|
| MD5 |
bb12b48b882046aa702352b293ae9f16
|
|
| BLAKE2b-256 |
5cd1b3700df1035edadf22bf25f55cf7e35bb59ff673ae9c26765c28c3dc8020
|
File details
Details for the file flexhash-1.0.0-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a425e013b3a828f619c069ff115853626ef39d768357318cbd1e918c90ff4e6f
|
|
| MD5 |
88ff680cfc2e289e97dd23e36d45d020
|
|
| BLAKE2b-256 |
aa423d60f88349295153fdb30b26485e26772e92238dc29f8c8a7a570ddfe70c
|
File details
Details for the file flexhash-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f57610701f77b7476dfd13b4a1d86bbd519d42b1c0ec0e4ff45e0e4e8b11015a
|
|
| MD5 |
2cc0e6bbed531946f8d01e9aa7896c63
|
|
| BLAKE2b-256 |
745f1bb2fe05a70457c8268e6ff4779f951d068ab64c71755f637969ed76191f
|
File details
Details for the file flexhash-1.0.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb2ba89df6bd86787658c0bebe0e60704bb08808f87491f486ffc0037a42513c
|
|
| MD5 |
cbb8bd6af4539bb4bff1379f97cdb638
|
|
| BLAKE2b-256 |
040553603b424305b09adf33dde312cb27b41955a4d238418dc3a1eef7ab5758
|
File details
Details for the file flexhash-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dff7907592fd5fb90642cc5c1f0969dd192283cf2b3f21154a3fe0b660b403d
|
|
| MD5 |
bf601bd7c498f5325aecc5d7e35b9c5a
|
|
| BLAKE2b-256 |
472525a061fdefac951ff2eb4e2eb6d75aead3f2de3d3b830c6b16f9af9f425b
|
File details
Details for the file flexhash-1.0.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d57eb7fc999cab129695ab4fcecee3a52838e5f8f2de39b5a0c20fcba2a2c592
|
|
| MD5 |
a1dd671388baa27f2f0e7777be3a31a4
|
|
| BLAKE2b-256 |
7c12741f423fb74c02b3043c4a0c5b1c3046a040e15aa2f9e3421f801679e000
|
File details
Details for the file flexhash-1.0.0-cp310-cp310-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c0015912923a62e3a1e01a36148533fee37925805561e38c42a8f0334290280
|
|
| MD5 |
aa6a5200dc7f9c128ce35cc12aed0dbc
|
|
| BLAKE2b-256 |
8dc553699fee395812b771d52f0b1b46bc18acd00c8acf15353558641c618529
|
File details
Details for the file flexhash-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cbe1e014db757d0fb6c929f7380b8a77c355fb3717968cb641661248a066fe5
|
|
| MD5 |
a29c605c991511b29b516cc98f401ea0
|
|
| BLAKE2b-256 |
4bf1f226edba099de7a04bad28f35947bca52a18205c83d11bff9cd074903db0
|
File details
Details for the file flexhash-1.0.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6786ffdac84e7cc712a84cec0ff4bf387e6ddd8742dd390bfcd1527521ba240b
|
|
| MD5 |
0f7876288a7839eacb96e4de3d93c5f1
|
|
| BLAKE2b-256 |
09e40975f27c22e9c36f91a95adc2e06a6fcbea4061dded78efc5a90da1584bf
|
File details
Details for the file flexhash-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f195aa074a83fd111aaf426a9c6434dc79161f023b3c9218a508e3e82307ea5
|
|
| MD5 |
a4e4e1c209d655b667e1b3549fc0f792
|
|
| BLAKE2b-256 |
221c2258724f4960de412c526f20794a032685cb9f259c9f7b5a9952d70cc2a1
|
File details
Details for the file flexhash-1.0.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11b754a7743b8e18932e914d9279d1e43048209fece97a8ba26f29bf9d05d4fd
|
|
| MD5 |
fb4592ab86b8c9176ea27e0b3a7c23d7
|
|
| BLAKE2b-256 |
e0be42dafe274cd44ffc71876b39a5ee47e3bb494fddddd2110cdcec13429d63
|
File details
Details for the file flexhash-1.0.0-cp39-cp39-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp39-cp39-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.9, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53923fdaff8678cf02fa66560a892f21a012f065672d1f3a350a38297700da82
|
|
| MD5 |
f16eb76fb3425c2e294bbdfde185929e
|
|
| BLAKE2b-256 |
e865c5bb821f9f1e8b3c0580e2a68e04875f0f20d731f9df2f7d5bd3a613e803
|
File details
Details for the file flexhash-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b50d54f29c433b37a06bc4adfd84fc0002135d22be5c444f9405305926e48f21
|
|
| MD5 |
cf7ccc402c6888b6e0104bb25f0d6c50
|
|
| BLAKE2b-256 |
46a848124e4cebed0d6c424b8826534067b7f998beff1b02643aa2ad1f488229
|
File details
Details for the file flexhash-1.0.0-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11482cfef977db4fa71c2b43e1a717b20b270c72ab9fb3ecb446911bf15d94c5
|
|
| MD5 |
7190c78598dce92dbc9daa7184e88475
|
|
| BLAKE2b-256 |
02fbda3f09ea23969c41a79924cdcff66d36244ad843f5a48c69c51e71f3c12b
|
File details
Details for the file flexhash-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39bbcc8532b847f4d9d6b458c834ba039139f0199a778820d4607490b8605385
|
|
| MD5 |
ae1a63e53b2f0d1f214d90e079cdac73
|
|
| BLAKE2b-256 |
223edd0ae147507332dd6837f487bfc65dd5d98bec6cbe3ca2d9773a2f0293f3
|
File details
Details for the file flexhash-1.0.0-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c363e76191e9b8caa90ecd00185461e60df47ce06f562e131bb53f63869fefcd
|
|
| MD5 |
f762682a285e7732d71b08bd81167e2e
|
|
| BLAKE2b-256 |
84edf931ebaa78439d0b0c235a0fcad49851f2ccfd5e406acbb6aaab24714983
|
File details
Details for the file flexhash-1.0.0-cp38-cp38-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp38-cp38-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.8, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f822ae36314bdcaed42dc417e9f2b16eca2a2fb49039869c5064ad249ed88f2
|
|
| MD5 |
187b55c1a9607571fde4a55b39cadac3
|
|
| BLAKE2b-256 |
da7d5caefb46a9b0aba99387c36b40d25e8fffd84c7a5dd148b1ec8147c9c51c
|
File details
Details for the file flexhash-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
898f0eff9570d9f700097fc57269511054bd97152b12342081a18ca2555d86f6
|
|
| MD5 |
a11e9683d758c0b0073ead581efa6213
|
|
| BLAKE2b-256 |
49114752f1d3a2c13c0e920866a25df28a4860f3ef05e4c84961be198642b194
|
File details
Details for the file flexhash-1.0.0-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1f9cf967e00f8b4540ffd8439d9ad0a73771cf4efea370a00424acc581dc8de
|
|
| MD5 |
b1b16cb531139ebcead1fef3caa5bd35
|
|
| BLAKE2b-256 |
b62ba7df006afa47c0425638b5ed3e65152f05b60b9d2a21185f509de9badc84
|
File details
Details for the file flexhash-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: flexhash-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96a080739eec2916650f362dd6740c5f557f6acec4117a6316f38a71f7840391
|
|
| MD5 |
e0d693ce80789b8e1846924fe859262f
|
|
| BLAKE2b-256 |
3f524b3a03c1c1e90f73d122b8545ebf11bfa5469559a7843922643140450622
|