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.
Metadata
Release files for flexhash 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flexhash-1.0.0.tar.gz | 791.3 kB | Without provenance | Details for flexhash-1.0.0.tar.gz |
Built distributions (wheels)
Total release size: 43.2 MB
Release files / flexhash-1.0.0.tar.gz
| Download URL | flexhash-1.0.0.tar.gz |
|---|---|
| Size | 791.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
825a7e8a64553cdaced0c5e056b432c25dd3a1d5130b5d35ef9a354dda66f7f5
|
|
BLAKE2b-256 checksum How to use checksums |
e0c90736cd16f1f8f268ebe32d5abadcbc27c87dd3e58d20f621f7b8e5ac3622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp312-cp312-win_amd64.whl
| Download URL | flexhash-1.0.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
261238d8f5b9ed9520832d329a8df8984fae7b3e5c5f8a8cfe7528cca8400037
|
|
BLAKE2b-256 checksum How to use checksums |
106d9d7e46cf6389b63cd4e350b40df0e88fcf7fc1e36b4072b1c3f9f2c5f80f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | flexhash-1.0.0-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
7ff58f5946b0112c2eceb5653e3e289bfdfd9211fe497af0a008601113e62d4b
|
|
BLAKE2b-256 checksum How to use checksums |
80b25504d0e26700c1e87e1fc70f1b28e4cd575038d3db8668ac0bbb63cdde23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | flexhash-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e919c73b953cb95a49773a7c807fb6536f25eeb39d3ffff75c9432582efbb8c0
|
|
BLAKE2b-256 checksum How to use checksums |
ddaf4130fc5391c323d3dcb87b8a14486d0a1620082e8be118c6cedad304a59a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | flexhash-1.0.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ebbb07e44152bf08c85021934d6c30e30aaacd128a05a9cc16fc3499e2622ffc
|
|
BLAKE2b-256 checksum How to use checksums |
5338a76c110b7a2a14e345c4d7ed4e9e88b73de0641579ec3f5791a53e5eec69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp312-cp312-macosx_10_9_x86_64.whl
| Download URL | flexhash-1.0.0-cp312-cp312-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.12 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
4371f7f0a2d98c9f1704ad6a46d5ba968f7ca763cf24b6bb15832f5a22b77bbc
|
|
BLAKE2b-256 checksum How to use checksums |
fa312208d5a1e91ed74a0aa1cb869e983de6fe0a72a154fd69c8d42eb915276b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp311-cp311-win_amd64.whl
| Download URL | flexhash-1.0.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
29b9919ddca06207f37967601893d051eb13ce175d98696a6fbd169876317c34
|
|
BLAKE2b-256 checksum How to use checksums |
5cd1b3700df1035edadf22bf25f55cf7e35bb59ff673ae9c26765c28c3dc8020
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | flexhash-1.0.0-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
a425e013b3a828f619c069ff115853626ef39d768357318cbd1e918c90ff4e6f
|
|
BLAKE2b-256 checksum How to use checksums |
aa423d60f88349295153fdb30b26485e26772e92238dc29f8c8a7a570ddfe70c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | flexhash-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
f57610701f77b7476dfd13b4a1d86bbd519d42b1c0ec0e4ff45e0e4e8b11015a
|
|
BLAKE2b-256 checksum How to use checksums |
745f1bb2fe05a70457c8268e6ff4779f951d068ab64c71755f637969ed76191f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | flexhash-1.0.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
eb2ba89df6bd86787658c0bebe0e60704bb08808f87491f486ffc0037a42513c
|
|
BLAKE2b-256 checksum How to use checksums |
040553603b424305b09adf33dde312cb27b41955a4d238418dc3a1eef7ab5758
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | flexhash-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
2dff7907592fd5fb90642cc5c1f0969dd192283cf2b3f21154a3fe0b660b403d
|
|
BLAKE2b-256 checksum How to use checksums |
472525a061fdefac951ff2eb4e2eb6d75aead3f2de3d3b830c6b16f9af9f425b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp310-cp310-win_amd64.whl
| Download URL | flexhash-1.0.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d57eb7fc999cab129695ab4fcecee3a52838e5f8f2de39b5a0c20fcba2a2c592
|
|
BLAKE2b-256 checksum How to use checksums |
7c12741f423fb74c02b3043c4a0c5b1c3046a040e15aa2f9e3421f801679e000
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp310-cp310-musllinux_1_2_x86_64.whl
| Download URL | flexhash-1.0.0-cp310-cp310-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
7c0015912923a62e3a1e01a36148533fee37925805561e38c42a8f0334290280
|
|
BLAKE2b-256 checksum How to use checksums |
8dc553699fee395812b771d52f0b1b46bc18acd00c8acf15353558641c618529
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | flexhash-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4cbe1e014db757d0fb6c929f7380b8a77c355fb3717968cb641661248a066fe5
|
|
BLAKE2b-256 checksum How to use checksums |
4bf1f226edba099de7a04bad28f35947bca52a18205c83d11bff9cd074903db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | flexhash-1.0.0-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6786ffdac84e7cc712a84cec0ff4bf387e6ddd8742dd390bfcd1527521ba240b
|
|
BLAKE2b-256 checksum How to use checksums |
09e40975f27c22e9c36f91a95adc2e06a6fcbea4061dded78efc5a90da1584bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | flexhash-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
0f195aa074a83fd111aaf426a9c6434dc79161f023b3c9218a508e3e82307ea5
|
|
BLAKE2b-256 checksum How to use checksums |
221c2258724f4960de412c526f20794a032685cb9f259c9f7b5a9952d70cc2a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp39-cp39-win_amd64.whl
| Download URL | flexhash-1.0.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
11b754a7743b8e18932e914d9279d1e43048209fece97a8ba26f29bf9d05d4fd
|
|
BLAKE2b-256 checksum How to use checksums |
e0be42dafe274cd44ffc71876b39a5ee47e3bb494fddddd2110cdcec13429d63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp39-cp39-musllinux_1_2_x86_64.whl
| Download URL | flexhash-1.0.0-cp39-cp39-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
53923fdaff8678cf02fa66560a892f21a012f065672d1f3a350a38297700da82
|
|
BLAKE2b-256 checksum How to use checksums |
e865c5bb821f9f1e8b3c0580e2a68e04875f0f20d731f9df2f7d5bd3a613e803
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | flexhash-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b50d54f29c433b37a06bc4adfd84fc0002135d22be5c444f9405305926e48f21
|
|
BLAKE2b-256 checksum How to use checksums |
46a848124e4cebed0d6c424b8826534067b7f998beff1b02643aa2ad1f488229
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | flexhash-1.0.0-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
11482cfef977db4fa71c2b43e1a717b20b270c72ab9fb3ecb446911bf15d94c5
|
|
BLAKE2b-256 checksum How to use checksums |
02fbda3f09ea23969c41a79924cdcff66d36244ad843f5a48c69c51e71f3c12b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl
| Download URL | flexhash-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.9 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
39bbcc8532b847f4d9d6b458c834ba039139f0199a778820d4607490b8605385
|
|
BLAKE2b-256 checksum How to use checksums |
223edd0ae147507332dd6837f487bfc65dd5d98bec6cbe3ca2d9773a2f0293f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp38-cp38-win_amd64.whl
| Download URL | flexhash-1.0.0-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c363e76191e9b8caa90ecd00185461e60df47ce06f562e131bb53f63869fefcd
|
|
BLAKE2b-256 checksum How to use checksums |
84edf931ebaa78439d0b0c235a0fcad49851f2ccfd5e406acbb6aaab24714983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp38-cp38-musllinux_1_2_x86_64.whl
| Download URL | flexhash-1.0.0-cp38-cp38-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.8 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
8f822ae36314bdcaed42dc417e9f2b16eca2a2fb49039869c5064ad249ed88f2
|
|
BLAKE2b-256 checksum How to use checksums |
da7d5caefb46a9b0aba99387c36b40d25e8fffd84c7a5dd148b1ec8147c9c51c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | flexhash-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
898f0eff9570d9f700097fc57269511054bd97152b12342081a18ca2555d86f6
|
|
BLAKE2b-256 checksum How to use checksums |
49114752f1d3a2c13c0e920866a25df28a4860f3ef05e4c84961be198642b194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp38-cp38-macosx_11_0_arm64.whl
| Download URL | flexhash-1.0.0-cp38-cp38-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.8 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f1f9cf967e00f8b4540ffd8439d9ad0a73771cf4efea370a00424acc581dc8de
|
|
BLAKE2b-256 checksum How to use checksums |
b62ba7df006afa47c0425638b5ed3e65152f05b60b9d2a21185f509de9badc84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flexhash-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
| Download URL | flexhash-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.8 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
96a080739eec2916650f362dd6740c5f557f6acec4117a6316f38a71f7840391
|
|
BLAKE2b-256 checksum How to use checksums |
3f524b3a03c1c1e90f73d122b8545ebf11bfa5469559a7843922643140450622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for flexhash 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.