# Prodamus hash verifier (HMAC)
Generate and verify Prodamus hash.
https://help.prodamus.ru/payform/integracii/rest-api/instrukcii-dlya-samostoyatelnaya-integracii-servisov#kak-prinyat-uvedomlenie-ob-uspeshnoi-oplate
## Installation
pip install python-prodamus
## Usage
Init object:
prodamus = python-prodamus.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
Raw data
{
"_id": null,
"home_page": "https://github.com/dnagikh/python-prodamus",
"name": "python-prodamus",
"maintainer": "Daniil Nagikh",
"docs_url": null,
"requires_python": "",
"maintainer_email": "dnagikh@gmail.com",
"keywords": "prodamus,hash,hmac,verify,sign",
"author": "",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/22/a6/75c9f19d95fdf22a1dbd70bec6371453660934bcaffe808bee993a26b77e/python-prodamus-1.0.1.tar.gz",
"platform": null,
"description": "# Prodamus hash verifier (HMAC)\n\nGenerate and verify Prodamus hash.\n\nhttps://help.prodamus.ru/payform/integracii/rest-api/instrukcii-dlya-samostoyatelnaya-integracii-servisov#kak-prinyat-uvedomlenie-ob-uspeshnoi-oplate\n\n## Installation\n \n pip install python-prodamus\n\n## Usage\n\nInit object:\n\n prodamus = python-prodamus.PyProdamus(API_TOKEN)\n\nParse query string to a dictionary:\n\n bodyDict = prodamus.parse(body)\n\nCreate signature:\n\n checkSign = prodamus.sign(bodyDict)\n\nVerify signature:\n\n signIsGood = prodamus.verify(bodyDict, receivedSign)\n if signIsGood:\n print(\"Signature is awesome\")\n else:\n print(\"Signature is incorrect\")\n\n## Copyright\n\nCopyright 2023 [Max Arnold, Daniil Nagikh], all rights reserved.\n\nThis software is released under the MIT License.\n\nA huge thank to https://github.com/max-arnold\n",
"bugtrack_url": null,
"license": "LICENSE.md",
"summary": "Prodamus hash verifier",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/dnagikh/python-prodamus"
},
"split_keywords": [
"prodamus",
"hash",
"hmac",
"verify",
"sign"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "22a675c9f19d95fdf22a1dbd70bec6371453660934bcaffe808bee993a26b77e",
"md5": "ca4a4072aa2ffe5c505d4388931d6c2a",
"sha256": "289f9641a5aacf7b0ad801e37b5b49a826002126ba73a4642212b53f0fa002f4"
},
"downloads": -1,
"filename": "python-prodamus-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "ca4a4072aa2ffe5c505d4388931d6c2a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3711,
"upload_time": "2023-09-24T16:57:06",
"upload_time_iso_8601": "2023-09-24T16:57:06.357493Z",
"url": "https://files.pythonhosted.org/packages/22/a6/75c9f19d95fdf22a1dbd70bec6371453660934bcaffe808bee993a26b77e/python-prodamus-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-24 16:57:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dnagikh",
"github_project": "python-prodamus",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "python-prodamus"
}