CosmosHashLib
A simple hashing wrapper with support for salts and peppers
Installation
Use the package manager pip to install CosmosHashLib.
pip install CosmosHashLib
Usage
import CosmosHashLib
CosmosHashLib.RandLen(73415123615248374531263482374652358413461324623874189024189236192837189237273452631741)
CosmosHashLib.Pepper('secret pepper')
# returns string with hash and salts
# in format salt1$hash$salt2
# '9629480548280199683952534504439555097095034673943361626777618263219601140700721613182$df85bca92a6b4b87abda9e621aa5e662113b4fcbb0c022963e43c3b43a230956$4797f1dbb71ac12b5d8985421ed5b743879e1aba11a2beeab9c39b47c96d94fe'
hash = CosmosHashLib.SHA256.HashSaltPepper('hash a string')
# returns True or False
CosmosHashLib.SHA256.VerifySaltPepper('hash a string', hash)
# Use CosmosHashLib.SHA1 for SHA1 hashes
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for CosmosHashLib 0.0.2
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 | |
|---|---|---|---|---|
| CosmosHashLib-0.0.2.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| CosmosHashLib-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / CosmosHashLib-0.0.2.tar.gz
| Download URL | CosmosHashLib-0.0.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1daeeb114a7d0716dc1e30cca60cc6ea52b7ac41ea87c960a58779c82a68b0be
|
|
BLAKE2b-256 checksum How to use checksums |
f462d6778fab133565f9116f143ac838ccc639346e4b52dab1f14906998637e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Release files / CosmosHashLib-0.0.2-py3-none-any.whl
| Download URL | CosmosHashLib-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee015173e96b0b0ce09be46e39843e02f3c5396390601ac38b0864eec8230da6
|
|
BLAKE2b-256 checksum How to use checksums |
2c178b366810966281d8589fd59ff90268b7eb8a2d117348ae500e2faa21e8e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Security for CosmosHashLib 0.0.2
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.