Generate and verify Prodamus hash.
pip install prodamuspy
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 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