{"id":13712399,"url":"https://github.com/gernest/base32","last_synced_at":"2025-04-14T22:44:52.884Z","repository":{"id":45309831,"uuid":"214599989","full_name":"gernest/base32","owner":"gernest","description":"base32 encoding/decoding for ziglang","archived":false,"fork":false,"pushed_at":"2024-08-22T23:18:24.000Z","size":25,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T10:54:05.780Z","etag":null,"topics":["base32","base32hex","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/gernest.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":"2019-10-12T07:26:58.000Z","updated_at":"2025-03-24T07:04:43.000Z","dependencies_parsed_at":"2024-08-23T00:32:58.715Z","dependency_job_id":"c9127cee-e659-4fc6-868c-81cb2abfd908","html_url":"https://github.com/gernest/base32","commit_stats":{"total_commits":16,"total_committers":7,"mean_commits":"2.2857142857142856","dds":0.75,"last_synced_commit":"0212357ac45af840e78745820adc1a9fc4b112ef"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gernest%2Fbase32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gernest%2Fbase32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gernest%2Fbase32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gernest%2Fbase32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gernest","download_url":"https://codeload.github.com/gernest/base32/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975291,"owners_count":21192198,"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":["base32","base32hex","zig","ziglang"],"created_at":"2024-08-02T23:01:18.019Z","updated_at":"2025-04-14T22:44:52.861Z","avatar_url":"https://github.com/gernest.png","language":"Zig","readme":"# base32\n\nThis implements `base32` `encoding` and `decoding` for the zig programming language (ziglang)\n\n# Installation \nFirst fetch dependency by running:\n```\nzig fetch --save git+https://github.com/gernest/base32\n```\nThen update your `build.zig` file to load the module:\n```\nconst base32 = b.dependency(\"base32\", .{});\nexe.root_module.addImport(\"base32\", base32.module(\"base32\"));\n```\n\n# Usage \n\n`example.zig`\n\n```zig\nconst std = @import(\"std\");\nconst base32 = @import(\"src/base32.zig\");\nconst stdout = std.io.getStdOut().writer();\n\npub fn main() !void {\n    try encodeString();\n    try stdout.print(\"\\n\\n\", .{});\n    try decodeString();\n}\n\nfn encodeString() !void {\n    const src = \"any + old \u0026 data\";\n    const size = comptime base32.std_encoding.encodeLen(src.len);\n    var buf: [size]u8 = undefined;\n    const out = base32.std_encoding.encode(\u0026buf, src);\n    try stdout.print(\"ExampleEncodingToString:\\nsource: \\\"{s}\\\"\\noutput: {s}\\n\", .{src, out});\n}\n\nfn decodeString() !void {\n    const src = \"ONXW2ZJAMRQXIYJAO5UXI2BAAAQGC3TEEDX3XPY=\";\n    const size = comptime base32.std_encoding.decodeLen(src.len);\n    var buf: [size]u8 = undefined;\n    const out = try base32.std_encoding.decode(\u0026buf, src);\n    try stdout.print(\"ExampleDecodingString:\\nsource: {s}\\noutput: \\\"{s}\\\"\\n\", .{src, out});\n}\n```\n\n```\n$ zig run example.zig\nExampleEncodingToString:\nsource: \"any + old \u0026 data\"\noutput: MFXHSIBLEBXWYZBAEYQGIYLUME======\n\n\nExampleDecodingString:\nsource: ONXW2ZJAMRQXIYJAO5UXI2BAAAQGC3TEEDX3XPY=\noutput: \"some data with  and ﻿\"\n\n```\n","funding_links":[],"categories":["Applications","Other","Data \u0026 Science"],"sub_categories":["Encryption"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgernest%2Fbase32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgernest%2Fbase32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgernest%2Fbase32/lists"}