{"id":13741238,"url":"https://github.com/deatil/zig-md2","last_synced_at":"2025-02-27T12:37:30.503Z","repository":{"id":240262245,"uuid":"801978131","full_name":"deatil/zig-md2","owner":"deatil","description":"A MD2 hash function library for Zig","archived":false,"fork":false,"pushed_at":"2025-02-11T05:56:40.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T06:30:02.251Z","etag":null,"topics":["md2","zig","zig-md2"],"latest_commit_sha":null,"homepage":"https://github.com/deatil/zig-md2","language":"Zig","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-17T09:25:02.000Z","updated_at":"2025-02-11T05:56:42.000Z","dependencies_parsed_at":"2024-11-11T20:23:53.707Z","dependency_job_id":"4b251aee-c043-4b40-9251-bc95f8105738","html_url":"https://github.com/deatil/zig-md2","commit_stats":null,"previous_names":["deatil/zig-md2"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fzig-md2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fzig-md2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fzig-md2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fzig-md2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deatil","download_url":"https://codeload.github.com/deatil/zig-md2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241014002,"owners_count":19894179,"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","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":["md2","zig","zig-md2"],"created_at":"2024-08-03T04:00:57.113Z","updated_at":"2025-02-27T12:37:30.497Z","avatar_url":"https://github.com/deatil.png","language":"Zig","readme":"## Zig-MD2 \n\nzig-md2 is a MD2 hash function for Zig.\n\n\n### Env\n\n - Zig \u003e= 0.14.0-dev.2851+b074fb7dd\n\n\n### Adding zig-md2 as a dependency\n\nAdd the dependency to your project:\n\n```sh\nzig fetch --save=zig-md2 git+https://github.com/deatil/zig-md2#main\n```\n\nor use local path to add dependency at `build.zig.zon` file\n\n```zig\n.{\n    .dependencies = .{\n        .@\"zig-md2\" = .{\n            .path = \"./lib/zig-md2\",\n        },\n        ...\n    },\n    ...\n}\n```\n\nAnd the following to your `build.zig` file:\n\n```zig\n    const zig_md2_dep = b.dependency(\"zig-md2\", .{});\n    exe.root_module.addImport(\"zig-md2\", zig_md2_dep.module(\"zig-md2\"));\n```\n\nThe `zig-md2` structure can be imported in your application with:\n\n```zig\nconst zig_md2 = @import(\"zig-md2\");\n```\n\n\n### Get Starting\n\n~~~zig\nconst std = @import(\"std\");\nconst MD2 = @import(\"zig-md2\").MD2;\n\npub fn main() !void {\n    var out: [16]u8 = undefined;\n    \n    var h = MD2.init(.{});\n    h.update(\"abc\");\n    h.final(out[0..]);\n    \n    // output: da853b0d3f88d99b30283a69e6ded6bb\n    std.debug.print(\"output: {x}\\n\", .{out});\n}\n~~~\n\n\n### LICENSE\n\n*  The library LICENSE is `Apache2`, using the library need keep the LICENSE.\n\n\n### Copyright\n\n*  Copyright deatil(https://github.com/deatil).\n","funding_links":[],"categories":["Libraries","Data \u0026 Science"],"sub_categories":["Encryption"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeatil%2Fzig-md2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeatil%2Fzig-md2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeatil%2Fzig-md2/lists"}