Prodamus hash verifier
Project description
Prodamus hash verifier (HMAC)
Generate and verify Prodamus hash.
Installation
pip install prodamuspy
Usage
Init object:
prodamus = prodamuspy.PyProdamus(API_TOKEN)
Parse query string to a dictionary:
bodyDict = prodamus.parse(body)
Create signature:
checkSign = prodamus.sign(bodyDict)
Verify signature:
signIsGood = prodamus.verify(bodyDict, receivedSign)
if signIsGood:
print("Signature is awesome")
else:
print("Signature is incorrect")
Copyright
Copyright 2023 [Max Arnold, Daniil Nagikh], all rights reserved.
This software is released under the MIT License.
A huge thank to https://github.com/max-arnold
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
prodamuspy-1.0.2.tar.gz
(3.7 kB
view hashes)