{"id":15393579,"url":"https://github.com/luukdegram/otp","last_synced_at":"2025-04-15T23:46:55.157Z","repository":{"id":107372855,"uuid":"259092620","full_name":"Luukdegram/otp","owner":"Luukdegram","description":"Simple, basic OTP library written in Zig.","archived":false,"fork":false,"pushed_at":"2020-07-29T17:20:39.000Z","size":23,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T02:51:29.219Z","etag":null,"topics":["one-time-password","otp","otpauth","zig","ziglang"],"latest_commit_sha":null,"homepage":null,"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/Luukdegram.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":"2020-04-26T17:33:03.000Z","updated_at":"2024-05-18T05:42:49.000Z","dependencies_parsed_at":"2023-05-17T08:14:53.681Z","dependency_job_id":null,"html_url":"https://github.com/Luukdegram/otp","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"45434f3749fbe1a64f39362d9e94fc6f2fff0ec1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luukdegram%2Fotp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luukdegram%2Fotp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luukdegram%2Fotp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luukdegram%2Fotp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luukdegram","download_url":"https://codeload.github.com/Luukdegram/otp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173060,"owners_count":21224481,"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":["one-time-password","otp","otpauth","zig","ziglang"],"created_at":"2024-10-01T15:19:42.003Z","updated_at":"2025-04-15T23:46:55.149Z","avatar_url":"https://github.com/Luukdegram.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n Copyright (c) 2020 Luuk de Gram\n \n This software is released under the MIT License.\n https://opensource.org/licenses/MIT\n--\u003e\n\n# OTP\n![Test](https://github.com/Luukdegram/otp/workflows/Test/badge.svg)\n\nOTP is a one-time-password library supporting both HOTP and TOTP according to [`RFC 4226`](https://tools.ietf.org/html/rfc4226) and [`RFC 6238`](https://tools.ietf.org/html/rfc6238).\n\nCurrently only the generation of codes is supported. Verification has to be done by the implementation.\n\n**note**\n\nThis library's primary goal was to get more familair with the Zig language.\n\n## Example\n```zig\nconst std = @import(\"std\");\nconst otp = @import(\"otp\");\nconst warn = std.debug.warn;\n\npub fn main() !void {\n    const hotp = otp.Hotp.init();\n    const code = try hotp.generateCode(\"secretkey\", 0);\n    warn(\"code: {}\\n\", .{code});\n}\n```\nYou can use the `build.zig` file as reference point on how to link the library to your own project.\n\n### Tests\nYou can run the tests using the following command\n```shell\nzig build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluukdegram%2Fotp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluukdegram%2Fotp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluukdegram%2Fotp/lists"}