A python package that creates and verifies HMAC signatures
Project description
HMAC Authentication (easy-hmac)
A pure python package that handles the generation and verification of HMAC signatures.
Installation
TODO: modify installation instructions when the package is hosted on GITLAB.
This package is hosted at ???
User
If you ARE NOT a developer, just install the package from TBD
Developer
- Clone this repository
- Build the package in your local environment. Make sure you have a pipenv virtual environment active and run:
pipenv install build
pipenv shell
python -m build easy-hmac
- Install the easy-hmac package in editing mode by running:
pip install -e easy-hmac
- If you want to make sure everything went well, try running the tests from test_easy-hmac
python easy_hmac/test/test_easy-hmac.py
Usage
easy-hmac
provides two helper functions for HMAC authentication:
generate_hmac_sha256
- generates a SHA256 HMAC from two strings (a secret key and a http message)verify_hmac
- given an HMAC and a message, verifies if the HMAC generated by the message is equal to the one passed as argument
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
easy-hmac-0.0.5.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for easy_hmac-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e339bdae666f80c614c354ff6c3e341d4469c176eff7df264a0a8f02185e4e58 |
|
MD5 | 1b6d108bbb0623bcbf553cbcecc9647d |
|
BLAKE2b-256 | 41803d2b0314590255ced917dca2751f3fd33e76804ec987b7e69c216f92fbcd |