{"id":34023194,"url":"https://github.com/keyintegrity/pycryptoprosdk","last_synced_at":"2026-04-01T23:37:29.769Z","repository":{"id":46166629,"uuid":"108554668","full_name":"Keyintegrity/pycryptoprosdk","owner":"Keyintegrity","description":"Библиотека для работы с КриптоПро CSP в python","archived":false,"fork":false,"pushed_at":"2023-07-31T18:55:51.000Z","size":24490,"stargazers_count":37,"open_issues_count":5,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-25T13:51:48.691Z","etag":null,"topics":["cryptopro","python"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Keyintegrity.png","metadata":{"files":{"readme":"README.rst","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":"2017-10-27T14:14:37.000Z","updated_at":"2025-07-31T08:26:28.000Z","dependencies_parsed_at":"2022-09-14T13:40:25.977Z","dependency_job_id":null,"html_url":"https://github.com/Keyintegrity/pycryptoprosdk","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/Keyintegrity/pycryptoprosdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyintegrity%2Fpycryptoprosdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyintegrity%2Fpycryptoprosdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyintegrity%2Fpycryptoprosdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyintegrity%2Fpycryptoprosdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Keyintegrity","download_url":"https://codeload.github.com/Keyintegrity/pycryptoprosdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyintegrity%2Fpycryptoprosdk/sbom","scorecard":{"id":78250,"data":{"date":"2025-08-11","repo":{"name":"github.com/Keyintegrity/pycryptoprosdk","commit":"800923e32d77917f00f8172e4506724b275a6187"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.4,"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/14 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":"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":"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":"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":"Binary-Artifacts","score":2,"reason":"binaries present in source code","details":["Warn: binary detected: compose/cpcsp/cprocsp-curl-64-4.0.0-4.x86_64.rpm:1","Warn: binary detected: compose/cpcsp/cprocsp-pki-2.0.0-amd64-cades.rpm:1","Warn: binary detected: compose/cpcsp/lsb-cprocsp-base-4.0.0-4.noarch.rpm:1","Warn: binary detected: compose/cpcsp/lsb-cprocsp-capilite-64-4.0.0-4.x86_64.rpm:1","Warn: binary detected: compose/cpcsp/lsb-cprocsp-devel-4.0.0-4.noarch.rpm:1","Warn: binary detected: compose/cpcsp/lsb-cprocsp-kc1-64-4.0.0-4.x86_64.rpm:1","Warn: binary detected: compose/cpcsp/lsb-cprocsp-kc2-64-4.0.0-4.x86_64.rpm:1","Warn: binary detected: compose/cpcsp/lsb-cprocsp-rdr-64-4.0.0-4.x86_64.rpm:1"],"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: compose/Dockerfile:1: pin your Docker image by updating python:3.5 to python:3.5@sha256:42a37d6b8c00b186bdfb2b620fa8023eb775b3eb3a768fd3c2e421964eee9665","Warn: pipCommand not pinned by hash: compose/Dockerfile:27","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'","Warn: branch protection not enabled for branch '1.0.0'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T05:16:45.484Z","repository_id":46166629,"created_at":"2025-08-15T05:16:45.484Z","updated_at":"2025-08-15T05:16:45.484Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27708545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cryptopro","python"],"created_at":"2025-12-13T16:00:36.492Z","updated_at":"2026-04-01T23:37:29.764Z","avatar_url":"https://github.com/Keyintegrity.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"pycryptoprosdk\n==============\nБиблиотека для работы с Cryptopro CSP в python\n\nСистемные требования\n--------------------\n* Python \u003e= 3.5\n* КриптоПро CSP \u003e= 4\n\nУстановка\n---------\n* Установить КриптоПро CSP.\n* Установить пакеты lsb-cprocsp-devel-.noarch.rpm и cprocsp-pki-amd64-cades.rpm из состава КриптоПро ЭЦП SDK.\n* При необходимости, создать симлинк:\n\n.. code-block:: shell\n\n    ln -s /opt/cprocsp/lib/amd64/libcades.so.2.0.0 /opt/cprocsp/lib/amd64/libcades.so\n\nПример установки пакетов можно посмотреть в `pycryptoprosdk/compose/Dockerfile \u003chttps://github.com/Keyintegrity/pycryptoprosdk/blob/master/compose/Dockerfile\u003e`_.\n\n* Установить pycryptoprosdk:\n\n.. code-block:: shell\n\n    pip install pycryptoprosdk\n\nПримеры использования\n---------------------\n.. code-block:: python\n\n    \u003e\u003e\u003e from pycryptoprosdk import CryptoProSDK\n\n\n    \u003e\u003e\u003e sdk = CryptoProSDK()\n\n\n    # Создание и проверка отсоединенной подписи:\n    \u003e\u003e\u003e content = 'test content'\n    \u003e\u003e\u003e cert = sdk.get_cert_by_subject('MY', 'Ivan')\n    \u003e\u003e\u003e signature = sdk.sign(content, cert.thumbprint, 'MY', detached=True)\n    \u003e\u003e\u003e result = sdk.verify_detached(content, signature)\n\n    # статус проверки:\n    \u003e\u003e\u003e result.verification_status\n    0\n\n    # 0: Успешная проверка подписи.\n    # 1: Отсутствуют или имеют неправильный формат атрибуты со ссылками и значениями доказательств подлинности.\n    # 2: Сертификат, на ключе которого было подписано сообщение, не найден.\n    # 3: В сообщении не найден действительный штамп времени на подпись.\n    # 4: Значения ссылок на доказательства подлинности и сами доказательства, вложенные в сообщение, не соответствуют друг другу.\n    # 5: Не удалось построить цепочку для сертификата, на ключе которого подписано сообщение.\n    # 6: Ошибка проверки конечного сертификата на отзыв.\n    # 7: Ошибка проверки сертификата цепочки на отзыв.\n    # 8: Сообщение содержит неверную подпись.\n    # 9: В сообщении не найден действительный штамп времени на доказательства подлинности подписи.\n    # 10: Значение подписанного атрибута content-type не совпадает со значением, указанным в поле encapContentInfo.eContentType.\n\n    # сертификат подписанта:\n    \u003e\u003e\u003e result.cert.as_dict()\n    {'CN': 'Ivan'}\n\n\n    # создание хэша файла алгоритмом ГОСТ Р 34.11-94:\n    \u003e\u003e\u003e sdk.create_hash('some text', alg='CALG_GR3411')\n    '046255290b0eb1cdd1797d9ab8c81f699e3687f3'\n\n\n    # поиск сертификата в хранилище MY по отпечатку:\n    \u003e\u003e\u003e cert = sdk.get_cert_by_thumbprint('MY', '046255290b0eb1cdd1797d9ab8c81f699e3687f3')\n\n\n    # поиск сертификата по имени:\n    \u003e\u003e\u003e cert = sdk.get_cert_by_subject('MY', 'CRYPTO-PRO Test Center 2')\n\n\n    # установка сертификата в хранилище MY:\n    \u003e\u003e\u003e with open('certificate.cer', 'rb') as f:\n    \u003e\u003e\u003e     cert_content = f.read()\n    \u003e\u003e\u003e sdk.install_certificate('MY', cert_content)\n\n\n    # удаление сертификата из хранилища MY по отпечатку:\n    \u003e\u003e\u003e sdk.delete_certificate('MY', '9e78a331020e528c046ffd57704a21b7d2241cb3')\n\n\n    # извлечение сертификата подписанта из подписи:\n    \u003e\u003e\u003e with open('signature.sig', 'rb') as f:\n    \u003e\u003e\u003e     signature_content = f.read()\n    \u003e\u003e\u003e cert = sdk.get_signer_cert_from_signature(signature_content)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyintegrity%2Fpycryptoprosdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyintegrity%2Fpycryptoprosdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyintegrity%2Fpycryptoprosdk/lists"}