Salty HMACs!
Reason this release was yanked:
Terribly Terribly Broken Do Not Use
Project description
SECURITY NOTICE
THIS MODULE MAY NOT BE SUITABLE FOR FULL PRODUCTION USE
IT MAY OR MAY NOT BE SECURE - NO SEURITY EXPERT HAS CHECKED.
IF YOU ARE GOING TO USE THIS MODULE, PLEASE REVIEW THE CODE FIRST,
OR ASK A SECURITY EXPERT TO DO SO.
Introduction
The hashfish python module allows you to easily use salted HMACs for data hashing. It acts as a simple "wrapper" for some of the functions in the hmac module from the standard library. Hashfish allows you to hash data and check the hashes using a quick and easy implementation; one function is for hashing, one for generating secure salt, and one function is for checking (+ one for testing).
Usage
The usage for hashfish is simple; an example script is shown below:
import hashfish
msg = 'Hello, world!' # Message
key = 'Some key...' # Key/Password
slt = hashfish.new_salt() # Length of choice may be used by changing the length keyword argument. Default is 16 characters long.
dmd = 'sha256' # Algorithm to use. See hmac.new(...).
mac = hashfish.new_salty_hmac(msg, key, slt, dmd) # Actually create the HMAC.
print(verify_salty_hmac(mac, msg, key, dmd)) # Test if verified. Should return [bool] True.
Technical ⚙️
Nothing to technical...
Credits
Credits go to:
Pigeon Nation :]
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.
Source Distribution
Built Distribution
File details
Details for the file hashfish-1.0.0.tar.gz
.
File metadata
- Download URL: hashfish-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d9b4411f3f4e9be664d5e310548c56fff0205b194a03f7289a41aaf293de237 |
|
MD5 | 915155bf4e94c8ec091c123f6aae3895 |
|
BLAKE2b-256 | 94dda4fae7b4c0749e2cc0f05bdacf3865b2ccd19899ed751b60ed70ea277e5d |
File details
Details for the file hashfish-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: hashfish-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa2010eb99be413c2f779013a093319ff47a369f10e38373a52bf6db31e34c99 |
|
MD5 | 95f5f740bd51c9ab7381f80d99438b73 |
|
BLAKE2b-256 | 498da2376f88d2225a1f0402b493cc759a1ca7f504310f041e88fbc2941b8291 |