{"id":34021055,"url":"https://github.com/egorgvo/sberbank_callback_async_cryptography","last_synced_at":"2026-03-11T12:11:27.131Z","repository":{"id":57464069,"uuid":"289990134","full_name":"egorgvo/sberbank_callback_async_cryptography","owner":"egorgvo","description":"Python implementation of Sberbank signature verification using async cryptography","archived":false,"fork":false,"pushed_at":"2020-08-27T13:50:23.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T04:45:24.709Z","etag":null,"topics":["cryptography","sberbank","signature-verification"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/sberbank-async-cryptography/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egorgvo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-24T17:09:44.000Z","updated_at":"2020-08-27T13:50:26.000Z","dependencies_parsed_at":"2022-09-05T05:30:30.656Z","dependency_job_id":null,"html_url":"https://github.com/egorgvo/sberbank_callback_async_cryptography","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/egorgvo/sberbank_callback_async_cryptography","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorgvo%2Fsberbank_callback_async_cryptography","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorgvo%2Fsberbank_callback_async_cryptography/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorgvo%2Fsberbank_callback_async_cryptography/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorgvo%2Fsberbank_callback_async_cryptography/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egorgvo","download_url":"https://codeload.github.com/egorgvo/sberbank_callback_async_cryptography/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorgvo%2Fsberbank_callback_async_cryptography/sbom","scorecard":{"id":369387,"data":{"date":"2025-08-11","repo":{"name":"github.com/egorgvo/sberbank_callback_async_cryptography","commit":"fedf020c425ac417e26e9462f61afcbdbba7605d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.0.0 not signed: https://api.github.com/repos/egorgvo/sberbank_callback_async_cryptography/releases/30116427","Warn: release artifact 1.0.0 does not have provenance: https://api.github.com/repos/egorgvo/sberbank_callback_async_cryptography/releases/30116427"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f","Warn: Project is vulnerable to: GHSA-5cpq-8wj7-hf2v","Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p","Warn: Project is vulnerable to: PYSEC-2021-62 / GHSA-hggm-jpg3-v476","Warn: Project is vulnerable to: GHSA-jm77-qphf-c4w8","Warn: Project is vulnerable to: GHSA-v8gr-m533-ghj9","Warn: Project is vulnerable to: GHSA-w7pp-m8wf-vj6r","Warn: Project is vulnerable to: GHSA-x4qr-2fvf-3mr5","Warn: Project is vulnerable to: PYSEC-2024-3 / GHSA-j225-cvw7-qrx7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T12:37:48.764Z","repository_id":57464069,"created_at":"2025-08-18T12:37:48.764Z","updated_at":"2025-08-18T12:37:48.764Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30380935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","sberbank","signature-verification"],"created_at":"2025-12-13T15:41:13.018Z","updated_at":"2026-03-11T12:11:27.125Z","avatar_url":"https://github.com/egorgvo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sberbank signature verification using async cryptography\n\nThe code of keys generation and message signing and signature verification is universal, \nit is not only Sberbank-compatible. You can use it for your own purposes. \nHowever there is a `sberbank_tools` module that consist sberbank-specific functions.\n \nThe repo is open for pull requests. The author will be glad to hear some good feedback from you.\n \n## Python version\n\nPython version that has been used while coding is 3.8. Other versions has not been tested but they might work.\n\n## Installation\n\n```bash\npip install -i sberbank_async_cryptography\n```\n\n## Flask example\n\n```python\nimport os\nfrom dotenv import load_dotenv\n\nfrom flask import request\nfrom flask_restful import Resource\nfrom sb_async_cryptography.sberbank_tools import verify_signature, params_get_checksum\nfrom sb_async_cryptography.signature import public_key_import_from_x509_certificate_file as import_pub_key\n\nload_dotenv()\nSBERBANK_PUBLIC_KEY_FILE = os.getenv('SBERBANK_PUBLIC_KEY_FILE')\npub_key = import_pub_key(SBERBANK_PUBLIC_KEY_FILE)\n\n\nclass Notification(Resource):\n\n    def get(self):\n        \"\"\"Status change notification from Sberbank\"\"\"\n        params = request.args\n        signature = params_get_checksum(params)\n        if not verify_signature(pub_key, signature, params):\n            return {\"errors\": \"Signature verification failed.\"}, 400\n        \n        # some other code here\n```\n\n## FastAPI example\n\n```python\nimport os\nfrom dotenv import load_dotenv\n\nfrom fastapi import Request\nfrom sb_async_cryptography.sberbank_tools import verify_signature, params_get_checksum\nfrom sb_async_cryptography.signature import public_key_import_from_x509_certificate_file as import_pub_key \nfrom starlette.responses import JSONResponse\n\nload_dotenv()\nSBERBANK_PUBLIC_KEY_FILE = os.getenv('SBERBANK_PUBLIC_KEY_FILE')\npub_key = import_pub_key(SBERBANK_PUBLIC_KEY_FILE)\n\n\nasync def notification(request: Request):\n    \"\"\"Status change notification from Sberbank\"\"\"\n    params = dict(request.query_params)\n    signature = params_get_checksum(params)\n    if not verify_signature(pub_key, signature, params):\n        return JSONResponse(status_code=400, content={\"errors\": \"Signature verification failed.\"})\n    \n    # some other code here\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegorgvo%2Fsberbank_callback_async_cryptography","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegorgvo%2Fsberbank_callback_async_cryptography","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegorgvo%2Fsberbank_callback_async_cryptography/lists"}