Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

securehash-0.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

securehash-0.0.1-py3.8.egg (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page