{"id":29978987,"url":"https://github.com/oagoulart/libluacrc32","last_synced_at":"2026-05-16T18:33:03.501Z","repository":{"id":306158335,"uuid":"1025208367","full_name":"oAGoulart/libluacrc32","owner":"oAGoulart","description":"Lua 5.5 library to generate 32-bits cyclic redundancy checks.","archived":false,"fork":false,"pushed_at":"2025-12-29T14:27:42.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T17:46:44.039Z","etag":null,"topics":["crc32","iso13239","lua","lua-library","sse42"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"ms-rl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oAGoulart.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2025-07-23T22:51:55.000Z","updated_at":"2025-12-29T14:27:46.000Z","dependencies_parsed_at":"2025-07-24T01:36:30.228Z","dependency_job_id":null,"html_url":"https://github.com/oAGoulart/libluacrc32","commit_stats":null,"previous_names":["oagoulart/libluacrc32"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/oAGoulart/libluacrc32","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oAGoulart%2Flibluacrc32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oAGoulart%2Flibluacrc32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oAGoulart%2Flibluacrc32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oAGoulart%2Flibluacrc32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oAGoulart","download_url":"https://codeload.github.com/oAGoulart/libluacrc32/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oAGoulart%2Flibluacrc32/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33114214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["crc32","iso13239","lua","lua-library","sse42"],"created_at":"2025-08-04T12:43:08.457Z","updated_at":"2026-05-16T18:33:03.496Z","avatar_url":"https://github.com/oAGoulart.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libluacrc32\n[![Static Badge](https://img.shields.io/badge/ISO%2FIEC-13239%3A2002-red)](https://www.iso.org/standard/37010.html)\n[![GitHub Release](https://img.shields.io/github/v/release/oagoulart/libluacrc32?color=green)](https://github.com/oAGoulart/libluacrc32/releases)\n[![GitHub License](https://img.shields.io/github/license/oagoulart/libluacrc32)](https://github.com/oAGoulart/libluacrc32/tree/master?tab=MS-RL-1-ov-file)\n[![Static Badge](https://img.shields.io/badge/Lua-5.5-green?logo=lua)](https://www.lua.org/download.html)\n\nLua 5.5 library to generate 32-bits cyclic redundancy checks. Code includes four pre-generated lookup tables for six different methods.\n\n**Methods available:**\n1. ISO-HDLC (default; tested @ max. ~0.35 GB/s*)\n1. ISCSI (with SSE 4.2; tested @ max. ~5.3 GB/s*)\n1. JAMCRC\n1. MPEG-2\n1. BZIP2\n1. CD-ROM-EDC\n\n\\* _NOTE:_ preliminary tests performed only, further systematic tests required.\n\n## Usage\n\nBinaries for AMD64 are available on [Releases](https://github.com/oAGoulart/libluacrc32/releases) page. For x86, compile with gcc or use `build.sh` script. If on Windows, use MinGW/MSYS2 with `CFLAGS` and `LFLAGS` set to include and library paths, respectively.\n\n```sh\nenv CFLAGS=-IC:/msys64/usr/local/include \\\n    LFLAGS=-LC:/msys64/usr/local/bin ./build.sh\n```\n\n**NOTE:** If you want to use MSVC, you are on your own, sorry.\n\nThen, require and call with a string to calculate its CRC. First and second arguments of `calculate` are `strings`, the latter is which method to use.\n\n```lua\nlocal crc32 = require(\"libluacrc32\")\n\nprint(crc32.calculate(\"wrappem\", \"ISCSI\"))\n-- output: 969553473\n```\n\n**NOTE:** If the Lua code above fails with `module 'libluacrc32' not found` on Windows, add `package.cpath=\".\\\\?.dll\"` one line before `require` or change your `LUA_CPATH` environment variable to include `.\\\\?.dll`.\n\n## Further reading\n1. [Catalogue of parametrised CRC algorithms with 17 or more bits](https://reveng.sourceforge.io/crc-catalogue/17plus.htm).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foagoulart%2Flibluacrc32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foagoulart%2Flibluacrc32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foagoulart%2Flibluacrc32/lists"}