Skip to main content

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

  1. Clone this repository
  2. 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
  1. Install the easy-hmac package in editing mode by running:
pip install -e easy-hmac
  1. 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)

Uploaded Source

Built Distribution

easy_hmac-0.0.5-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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