{"id":20329290,"url":"https://github.com/bdcht/crysp","last_synced_at":"2026-03-17T09:32:55.628Z","repository":{"id":3557400,"uuid":"4618645","full_name":"bdcht/crysp","owner":"bdcht","description":"crypto stuff in python","archived":false,"fork":false,"pushed_at":"2020-08-09T06:47:58.000Z","size":310,"stargazers_count":14,"open_issues_count":1,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-01-26T13:45:30.509Z","etag":null,"topics":["cryptography","python","toys"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bdcht.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-10T21:42:57.000Z","updated_at":"2026-01-05T00:42:04.000Z","dependencies_parsed_at":"2022-07-28T21:19:04.136Z","dependency_job_id":null,"html_url":"https://github.com/bdcht/crysp","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/bdcht/crysp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdcht%2Fcrysp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdcht%2Fcrysp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdcht%2Fcrysp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdcht%2Fcrysp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdcht","download_url":"https://codeload.github.com/bdcht/crysp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdcht%2Fcrysp/sbom","scorecard":{"id":229009,"data":{"date":"2025-08-11","repo":{"name":"github.com/bdcht/crysp","commit":"366727dd97825ab206d7c7e572d37acdfb6020ed"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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"}}]},"last_synced_at":"2025-08-17T04:28:06.684Z","repository_id":3557400,"created_at":"2025-08-17T04:28:06.684Z","updated_at":"2025-08-17T04:28:06.684Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30620719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T08:10:05.930Z","status":"ssl_error","status_checked_at":"2026-03-17T08:10:04.972Z","response_time":56,"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","python","toys"],"created_at":"2024-11-14T20:09:58.455Z","updated_at":"2026-03-17T09:32:55.609Z","avatar_url":"https://github.com/bdcht.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====\nCrysp\n=====\n----------------------\nCrypto Stuff in Python\n----------------------\n\n.. image:: https://travis-ci.org/bdcht/crysp.svg?branch=master\n    :target: https://travis-ci.org/bdcht/crysp\n\n.. image:: https://img.shields.io/lgtm/grade/python/g/bdcht/crysp.svg?logo=lgtm\u0026logoWidth=18\n    :target: https://lgtm.com/projects/g/bdcht/crysp/context:python\n    :alt: Code Quality\n\n.. image:: https://badge.fury.io/py/crysp.svg\n    :target: https://badge.fury.io/py/crysp\n\n+-----------+-----------------------------------+\n| Status:   | Under Development                 |\n+-----------+-----------------------------------+\n| Location: | https://github.com/bdcht/crysp    |\n+-----------+-----------------------------------+\n| Version:  | 1.2                               |\n+-----------+-----------------------------------+\n\nDescription\n===========\n\ncrysp is a python (\u003e=3.5) package with some of my crypto-related facilities.\nIt is obviously not intended to be used in \"real\" applications but\nmore for studying purpose, allowing to inspect the internal state\nof various cryptographic algorithm and to easily modify parts of\nthese algorithm.\n\nInstall\n=======\n\ncrysp/utils suggests the following python packages:\n\n- matplotlib_, for displaying histograms.\n- grandalf_, in utils/freq2.py.\n\nOverview\n========\n\n*bits.py*\n---------\n\nContains the bitvector/bitstream manipulation methods.\nThis module defines the classes:\n\n- Bits\n\nBits.\n~~~~~\n\nA Bits object is defined by a long ival, a size field and a mask.\nIt can be created from either:\n\n- an int or long,\n- a list of bit values ([0,0,1,...,0,1,1]) with LSB first,\n- a string, also with LSB first,\n- or another Bits instance.\n\nA Bits object ival holds the list of bits encoded in base10 with bit0 being\nthe LSB of ival.\nWhen created from an integer value, this value simply defines the ival,\nand the size/mask is computed automatically.\nWhen created from a bit list the list defines bits LSB to MSB.\nWhen created from a string, the string is parsed as a stream of bits :\nthe bit with index 0 (LSB of ival) is the MSB of the first char.\nIt can be tricky to get used to this initialisation convention, especially\nlooking at /b1/ and /b3/ in the following example:\nOptionnally, the bytestring can be decoded as a little-endian arbitrary long\ninteger by using parameter bitorder=1:\n\n.. sourcecode:: python\n\n   \u003e\u003e\u003e b1 = Bits(10)\n   \u003e\u003e\u003e b2 = Bits([0,1,0,1])\n   \u003e\u003e\u003e b3 = Bits('\\x50',size=4)\n   \u003e\u003e\u003e b4 = Bits('\\x0a',size=4,bitorder=1)\n   \u003e\u003e\u003e b1==b2==b3==b4\n   True\n\n\n*poly.py*\n---------\n\nContains the bytevector/bytestream manipulation methods.\nThis module defines the classes:\n\n- Poly\n\nPoly.\n~~~~~\n\nThis class API is very similar to Bits, but extends to polynomials in arbitrary rings.\nIt allows for example to operate on bytes (ring=256) rather than bits.\n\n*crc.py*\n--------\n\nContains generic CRC and CRC32 manipulation algorithms.\nThis module defines the functions:\n\n- crc_table, crc_back_table\n- crc\n- crc_back_pos\n- crc32\n- crc32_back_pos\n- crc32_fix, crc32_fix_pos\n\nMost functions are self-explanatory ;)\n\n*des.py*\n--------\n\n*wb.py*\n-------\n\n*keccak.py*\n-----------\n\nContains the Keccak class which provides a full implementation of the Keccak sponge functions family.\nThis module also defines the 4 SHA-3 instances: sha3_224, sha3_256, sha3_384, sha3_512.\nSee tests/test-keccak.py for examples.\n\nutils/\n------\n\nContains some grandpa crypto utilities that are still useful sometimes...\n\n.. _matplotlib: http://matplotlib.sourceforge.net\n.. _grandalf: https://github.com/bdcht/grandalf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdcht%2Fcrysp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdcht%2Fcrysp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdcht%2Fcrysp/lists"}