Python package to use encryption, bad encryption.
Project description
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
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.