{"id":16464650,"url":"https://github.com/deatil/go-crc","last_synced_at":"2025-09-21T17:23:16.355Z","repository":{"id":44892842,"uuid":"513100662","full_name":"deatil/go-crc","owner":"deatil","description":"crc 相关算法，主要包括 lrc, bcc, crc3,crc4, crc5, crc6, crc7, crc12, crc24  和 crc40 算法","archived":false,"fork":false,"pushed_at":"2022-08-27T03:01:23.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T08:45:18.046Z","etag":null,"topics":["bcc","crc","crc12","crc24","crc3","crc4","crc40","crc5","crc6","go","go-crc","lrc"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/deatil/go-crc","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deatil.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}},"created_at":"2022-07-12T10:39:00.000Z","updated_at":"2023-04-07T06:21:10.000Z","dependencies_parsed_at":"2022-08-01T02:08:49.908Z","dependency_job_id":null,"html_url":"https://github.com/deatil/go-crc","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/deatil/go-crc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fgo-crc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fgo-crc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fgo-crc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fgo-crc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deatil","download_url":"https://codeload.github.com/deatil/go-crc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fgo-crc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276273713,"owners_count":25614235,"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-09-21T02:00:07.055Z","response_time":72,"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":["bcc","crc","crc12","crc24","crc3","crc4","crc40","crc5","crc6","go","go-crc","lrc"],"created_at":"2024-10-11T11:28:59.293Z","updated_at":"2025-09-21T17:23:16.309Z","avatar_url":"https://github.com/deatil.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## crc 相关算法\n\n\n### 项目介绍\n\n*  crc 相关算法\n*  可用检验方法：`Crc3`, `Crc4Itu`, `Crc5Epc`, `Crc5Itu`, `Crc5Usb`, `Crc6Itu`, `Crc7Mmc`, `BCC`, `LRC`\n*  `crc12` 可用检验方法：`ChecksumCRC12`\n*  `crc24` 可用检验方法：`ChecksumCRC24`, `ChecksumFLEXRAY_A`, `ChecksumFLEXRAY_B`\n*  `crc40` 可用检验方法：`ChecksumGSM`\n\n\n### 下载安装\n\n~~~go\ngo get -u github.com/deatil/go-crc\n~~~\n\n\n### 使用\n\n~~~go\npackage main\n\nimport (\n    \"fmt\"\n    \"encoding/hex\"\n\n    \"github.com/deatil/go-crc/crc\"\n)\n\nfunc main() {\n    // 16进制字符转为 byte\n    crcHex, _ := hex.DecodeString(\"020f\")\n\n    crcData := crc.Crc6Itu(crcHex)\n    crcData2 := crc.ToHexString(crcData, \"crc6\")\n\n    fmt.Println(\"计算结果为：\", crcData2)\n}\n~~~\n\n\n### 开源协议\n\n*  本软件包遵循 `Apache2` 开源协议发布，在保留本软件包版权的情况下提供个人及商业免费使用。\n\n\n### 版权\n\n*  本软件包所属版权归 deatil(https://github.com/deatil) 所有。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeatil%2Fgo-crc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeatil%2Fgo-crc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeatil%2Fgo-crc/lists"}