{"id":34072572,"url":"https://github.com/sizeofanton/ucrc","last_synced_at":"2026-03-11T04:32:31.572Z","repository":{"id":62586060,"uuid":"228676851","full_name":"sizeofanton/ucrc","owner":"sizeofanton","description":"Unsigned CRC for Python","archived":false,"fork":false,"pushed_at":"2023-11-13T06:11:46.000Z","size":72,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-16T08:43:09.147Z","etag":null,"topics":["checksum","crc","crc16","crc32","crc64","crc8"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sizeofanton.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-12-17T18:22:26.000Z","updated_at":"2023-11-13T06:12:46.000Z","dependencies_parsed_at":"2025-12-14T08:02:30.180Z","dependency_job_id":null,"html_url":"https://github.com/sizeofanton/ucrc","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sizeofanton/ucrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sizeofanton%2Fucrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sizeofanton%2Fucrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sizeofanton%2Fucrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sizeofanton%2Fucrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sizeofanton","download_url":"https://codeload.github.com/sizeofanton/ucrc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sizeofanton%2Fucrc/sbom","scorecard":{"id":828506,"data":{"date":"2025-08-11","repo":{"name":"github.com/sizeofanton/ucrc","commit":"ab8e846150c387ce15946f97a0d2a0fbfa3a6b84"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"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 1/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":"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":"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":"Binary-Artifacts","score":0,"reason":"binaries present in source code","details":["Warn: binary detected: Tests_ucrc/__pycache__/__init__.cpython-36.pyc:1","Warn: binary detected: Tests_ucrc/__pycache__/__init__.cpython-37.pyc:1","Warn: binary detected: Tests_ucrc/__pycache__/test_crc16.cpython-36-PYTEST.pyc:1","Warn: binary detected: Tests_ucrc/__pycache__/test_crc16.cpython-37-pytest-5.3.2.pyc:1","Warn: binary detected: Tests_ucrc/__pycache__/test_crc32.cpython-37-pytest-5.3.2.pyc:1","Warn: binary detected: Tests_ucrc/__pycache__/test_crc8.cpython-36-PYTEST.pyc:1","Warn: binary detected: Tests_ucrc/__pycache__/test_crc8.cpython-37-pytest-5.3.2.pyc:1","Warn: binary detected: Tests_ucrc/__pycache__/test_misc.cpython-36-PYTEST.pyc:1","Warn: binary detected: Tests_ucrc/__pycache__/test_misc.cpython-37-pytest-5.3.2.pyc:1","Warn: binary detected: ucrc/__init__.pyc:1","Warn: binary detected: ucrc/__pycache__/__init__.cpython-36.pyc:1","Warn: binary detected: ucrc/__pycache__/__init__.cpython-37.pyc:1","Warn: binary detected: ucrc/__pycache__/crc16.cpython-37.pyc:1","Warn: binary detected: ucrc/__pycache__/crc32.cpython-37.pyc:1","Warn: binary detected: ucrc/__pycache__/crc8.cpython-37.pyc:1","Warn: binary detected: ucrc/__pycache__/misc.cpython-36.pyc:1","Warn: binary detected: ucrc/__pycache__/misc.cpython-37.pyc: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":"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 v3.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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.0 not signed: https://api.github.com/repos/sizeofanton/ucrc/releases/32180676","Warn: release artifact 1.0 does not have provenance: https://api.github.com/repos/sizeofanton/ucrc/releases/32180676"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-23T17:07:25.181Z","repository_id":62586060,"created_at":"2025-08-23T17:07:25.181Z","updated_at":"2025-08-23T17:07:25.181Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30370801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"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":["checksum","crc","crc16","crc32","crc64","crc8"],"created_at":"2025-12-14T08:02:20.310Z","updated_at":"2026-03-11T04:32:31.541Z","avatar_url":"https://github.com/sizeofanton.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ucrc\n[![License: GPL](https://img.shields.io/badge/License-GPL-blue)](https://gnu.org/licenses/gpl-3.0.txt) [![Build Status](https://travis-ci.com/sizeofanton/ucrc.svg?branch=master)](https://travis-ci.com/sizeofanton/ucrc)\n\nPython module for calculating CRC check with result as unsigned.\n\n### Installation\n\n```sh\n$ pip install ucrc\n```\n\n\n\n### Usage\n\nExample to calculate CRC32 of data block with standard algorithm options:\n\n```python\nfrom ucrc import crc32\n\ndata_block = bytes('Hello World'.encode('utf-8'))\ncrc_value = crc32(data_block)\n```\n\nFor algorithm customization:\n```python\nfrom ucrc import crc32\n\ndata_block = bytes('Hello World'.encode('utf-8'))\ncrc_value = crc32(data_block, poly= 0x12FF00CE, in_ref=True, out_ref=True)\n```\n\nFor predefined algorithm:\n\n```python\nfrom ucrc import crc32_posix\n\ndata_block = bytes([0xAA, 0xBB, 0xCC])\ncrc_value = crc32(data_block)\n```\n\n\n\n### Algorithm customization\n\nFor all not pre-defined algorithms following options available:\n\n- `poly` - The polynomial, that is used during checksum calculation\n\n- `init_val` - The initial value of checksum\n\n- `final_xor` - The value that is xored to checksum right before it will be returned\n\n- `in_ref` - Boolean, if true the input bits will be flipped\n\n- `out_ref` - Boolean, if true the return value will be flipped\n\n  \n\n### Predefined algorithms:\n\n| Algorithm           | Polynomial         | Initial value      | Final xor value    | Input ref | Output ref |\n| ------------------- | ------------------ | ------------------ | ------------------ | --------- | ---------- |\n| crc8_saej1850       | 0x1D               | 0xFF               | 0xFF               | False     | False      |\n| crc8_saej1850 _zero | 0x1D               | 0x00               | 0x00               | False     | False      |\n| crc8_8h2f           | 0x2F               | 0xFF               | 0xFF               | False     | False      |\n| crc8_cdma2000       | 0x9B               | 0xFF               | 0x00               | False     | False      |\n| crc8_darc           | 0x39               | 0x00               | 0x00               | True      | True       |\n| crc8_dvb_s2         | 0xD5               | 0x00               | 0x00               | False     | False      |\n| crc8_ebu            | 0x1D               | 0xFF               | 0x00               | True      | True       |\n| crc88_icode         | 0x1D               | 0xFD               | 0x00               | False     | False      |\n| crc8_itu            | 0x7                | 0x00               | 0x55               | False     | False      |\n| crc8_maxim          | 0x31               | 0x00               | 0x00               | True      | True       |\n| crc8_rohc           | 0x7                | 0xFF               | 0x00               | True      | True       |\n| crc8_wcdma          | 0x9B               | 0x00               | 0x00               | True      | True       |\n| crc16_ccit_zero     | 0x1021             | 0x0000             | 0x0000             | False     | False      |\n| crc16_arc           | 0x8005             | 0x0000             | 0x0000             | True      | True       |\n| crc16_aug_ccitt     | 0x1021             | 0x1D0F             | 0x0000             | False     | False      |\n| crc16_buypass       | 0x8005             | 0x0000             | 0x0000             | False     | False      |\n| crc16_ccitt_false   | 0x1021             | 0xFFFF             | 0x0000             | False     | False      |\n| crc16_cdma2000      | 0xC867             | 0xFFFF             | 0x0000             | False     | False      |\n| crc16_dds_110       | 0x8005             | 0x800D             | 0x0000             | False     | False      |\n| crc16_detect_r      | 0x589              | 0x0000             | 0x0001             | False     | False      |\n| crc16_detect_x      | 0x589              | 0x0000             | 0x0000             | False     | False      |\n| crc16_dnp           | 0x3D65             | 0x0000             | 0xFFFF             | True      | True       |\n| crc16_en_13757      | 0x3D65             | 0x0000             | 0xFFFF             | False     | False      |\n| crc16_genibus       | 0x1021             | 0xFFFF             | 0xFFFF             | False     | False      |\n| crc16_maxim         | 0x8005             | 0x0000             | 0xFFFF             | True      | True       |\n| crc16_mcrf4xx       | 0x1021             | 0xFFFF             | 0x0000             | True      | True       |\n| crc16_riello        | 0x1021             | 0xB2AA             | 0x0000             | True      | True       |\n| crc16_t10_dif       | 0x8BB7             | 0x0000             | 0x0000             | False     | False      |\n| crc16_teledisk      | 0xA097             | 0x0000             | 0x0000             | False     | False      |\n| crc16_tms37157      | 0x1021             | 0x89EC             | 0x0000             | False     | False      |\n| crc16_usb           | 0x8005             | 0xFFFF             | 0xFFFF             | True      | True       |\n| crc16_a             | 0x1021             | 0xC6C6             | 0x0000             | True      | True       |\n| crc16_kermit        | 0x1021             | 0x0000             | 0x0000             | True      | True       |\n| crc16_modbus        | 0x8005             | 0xFFFF             | 0x0000             | True      | True       |\n| crc16_x_25          | 0x1021             | 0xFFFF             | 0xFFFF             | True      | True       |\n| crc16_xmodem        | 0x1021             | 0x0000             | 0x0000             | False     | False      |\n| crc32_bzip2         | 0x4C11DB7          | 0xFFFFFFFF         | 0xFFFFFFFF         | False     | False      |\n| crc32_c             | 0x1EDC6F41         | 0xFFFFFFFF         | 0xFFFFFFFF         | True      | True       |\n| crc32_d             | 0xA83398B          | 0xFFFFFFFF         | 0xFFFFFFFF         | True      | True       |\n| crc32_mpeg2         | 0x4C11DB7          | 0xFFFFFFFF         | 0x00000000         | False     | False      |\n| crc32_posix         | 0x4C11DB7          | 0x00000000         | 0xFFFFFFFF         | False     | False      |\n| crc32_q             | 0x814141AB         | 0x00000000         | 0x00000000         | False     | False      |\n| crc32_jamrc         | 0x4C11DB7          | 0xFFFFFFFF         | 0x00000000         | True      | True       |\n| crc32_xfer          | 0xAF               | 0x00000000         | 0x00000000         | False     | False      |\n| crc64_ecma_182      | 0x42F0E1EBA9EA3693 | 0x0000000000000000 | 0x0000000000000000 | False     | False      |\n| crc64_go_iso        | 0x000000000000001B | 0xFFFFFFFFFFFFFFFF | 0xFFFFFFFFFFFFFFFF | True      | True       |\n| crc64_we            | 0x42F0E1EBA9EA3693 | 0xFFFFFFFFFFFFFFFF | 0xFFFFFFFFFFFFFFFF | False     | False      |\n| crc64_xz            | 0x42F0E1EBA9EA3693 | 0xFFFFFFFFFFFFFFFF | 0xFFFFFFFFFFFFFFFF | True      | True       |\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsizeofanton%2Fucrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsizeofanton%2Fucrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsizeofanton%2Fucrc/lists"}