{"id":16147854,"url":"https://github.com/bakercp/crc32","last_synced_at":"2026-03-07T00:30:59.366Z","repository":{"id":18354062,"uuid":"21534048","full_name":"bakercp/CRC32","owner":"bakercp","description":"An Arduino library for calculating a CRC32 checksum.","archived":false,"fork":false,"pushed_at":"2025-11-01T17:59:49.000Z","size":49,"stargazers_count":80,"open_issues_count":0,"forks_count":34,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-11-01T18:05:55.101Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bakercp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-06T05:14:16.000Z","updated_at":"2025-11-01T17:58:38.000Z","dependencies_parsed_at":"2022-08-07T09:00:39.860Z","dependency_job_id":null,"html_url":"https://github.com/bakercp/CRC32","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bakercp/CRC32","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakercp%2FCRC32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakercp%2FCRC32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakercp%2FCRC32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakercp%2FCRC32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bakercp","download_url":"https://codeload.github.com/bakercp/CRC32/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakercp%2FCRC32/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30204154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-10-10T00:27:59.237Z","updated_at":"2026-03-07T00:30:59.357Z","avatar_url":"https://github.com/bakercp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"CRC32\n=====\n\n[![Build Status](https://travis-ci.org/bakercp/CRC32.svg?branch=master)](https://travis-ci.org/bakercp/CRC32)\n\n## Description\n\nAn Arduino library for calculating a CRC32 checksum.\n\n## Features\n\n- Calculate the CRC32 checksum with minimal memory overhead.\n- Calculate the CRC32 checksum as a stream or using buffered data.\n- Calculate the CRC32 checksum of any arbitrary data type.\n\n## Background\n\nA cyclic redundancy check (CRC) is often used to verify data integrity. The CRC32 algorithm is a common way to quickly produce a small, repeatable hash representing an arbitrary block of data. It is often used to verify data packet integrity during serial or network communication.\n\n## Use\n\nThe CRC32 checksum can be calculated on-the-fly with no buffering or the user can pass a complete data buffer.\n\n### Streaming\n\n```c++\nCRC32 crc;\n\n// Read a stream of bytes.\nwhile (bytesRemain)\n{\n    // Read a byte from arbitrary source.\n    uint8_t byte = readAByteFromAStream();\n\n    // Add the byte to the checksum.\n    crc.update(byte);\n}\n\n// Calculate the checksum.\nuint32_t checksum = crc.finalize();\n\n// To reuse the same instance, call.\ncrc.reset();\n```\n\n### Buffer\n\n```c++\nuint8_t byteBuffer[32] = { 0x00, 0x01, 0x02, 0x03,\n                           0x04, 0x05, 0x06, 0x07,\n                           0x08, 0x09, 0x0A, 0x0B,\n                           0x0C, 0x0D, 0x0E, 0x0F,\n                           0x10, 0x11, 0x12, 0x13,\n                           0x14, 0x15, 0x16, 0x17,\n                           0x18, 0x19, 0x1A, 0x1B,\n                           0x1C, 0x1D, 0x1E, 0x1F };\n\n// Calculate the checksum of an entire buffer at once.\nuint32_t checksum = CRC32::calculate(byteBuffer, 32);\n```\n\n## Examples\n\nSee the included examples and tests for further usage examples.\n\n## Compatible Implementations\n\n- Java / Processing\n    - [java.util.zip.CRC32](https://docs.oracle.com/javase/7/docs/api/java/util/zip/CRC32.html)\n- C++ / openFrameworks\n    - [Poco::Checksum](https://pocoproject.org/docs/Poco.Checksum.html)\n\n## Changelog\nSee [CHANGELOG.md](CHANGELOG.md)\n\n\n## License\nSee [LICENSE.md](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakercp%2Fcrc32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbakercp%2Fcrc32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakercp%2Fcrc32/lists"}