Secure-hashing
A library used for secure password storage. Feel free to look around the source code, there is not a lot. This library also supports peppers, if you don't know what that is i suggest you look at this: https://en.wikipedia.org/wiki/Pepper_(cryptography)
Word of safety: always practice cryptography with great care.
Requirements
bcrypt
hmac
Usage
import secure_hash as sh
sh.hash_high(plaintext)
Documentation
get_salt(hash)
Returns the salt used in the hash.
hash_high(password, pepper="", rounds=None)
Returns a hashed password. Rounds parameter is used to specify how many rounds should be used in salt generation.
verify_high(password, hash0, pepper="")
Returns True if the password matches the hash.
hash_low(password, salt, pepper="")
Returns a hashed password.
verify_low(password, hash0, salt, pepper="")
Returns True if the password matches the hash.
Installation
Use the package manager pip to install Secure-hashing.
pip install securehashing
Metadata
Release files for securehash 0.0.1
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 | |
|---|---|---|---|---|
| securehash-0.0.1.tar.gz | 2.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| securehash-0.0.1-py3.8.egg | Legacy Egg format | - | - | Details |
Total release size: 6.7 kB
Release files / securehash-0.0.1.tar.gz
| Download URL | securehash-0.0.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de494001cb245bfaf25f5ab688d6581b55cf90c8b23c3b08be3850ffa04a0e65
|
|
BLAKE2b-256 checksum How to use checksums |
92676008223e8c0ea22bcdeca28a93ea730a3702af1ce2eb155c90c1d240cacb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|
Release files / securehash-0.0.1-py3.8.egg
| Download URL | securehash-0.0.1-py3.8.egg |
|---|---|
| Size | 4.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
038ec6f5583e481539236aab902c598205dc0c5a75d612d29a1214639a428e51
|
|
BLAKE2b-256 checksum How to use checksums |
983a48eadbec471bd0b2460b26ebb5e3ce874dd9d74a57f4760a8f8219853a56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|
Security for securehash 0.0.1
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.