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 details)

Uploaded Source

Built Distribution

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

Uploaded Source

File details

Details for the file securehash-0.0.1.tar.gz.

File metadata

  • Download URL: securehash-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for securehash-0.0.1.tar.gz
Algorithm Hash digest
SHA256 de494001cb245bfaf25f5ab688d6581b55cf90c8b23c3b08be3850ffa04a0e65
MD5 be4ae97a7d6c257f7c162ea40782fca9
BLAKE2b-256 92676008223e8c0ea22bcdeca28a93ea730a3702af1ce2eb155c90c1d240cacb

See more details on using hashes here.

File details

Details for the file securehash-0.0.1-py3.8.egg.

File metadata

  • Download URL: securehash-0.0.1-py3.8.egg
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for securehash-0.0.1-py3.8.egg
Algorithm Hash digest
SHA256 038ec6f5583e481539236aab902c598205dc0c5a75d612d29a1214639a428e51
MD5 9c12f1a586080e655f71e3e0eabfab5f
BLAKE2b-256 983a48eadbec471bd0b2460b26ebb5e3ce874dd9d74a57f4760a8f8219853a56

See more details on using hashes here.

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