{"id":19804043,"url":"https://github.com/eltneg/kryptograzig","last_synced_at":"2026-06-05T21:31:23.740Z","repository":{"id":262168546,"uuid":"885477466","full_name":"eltNEG/kryptograzig","owner":"eltNEG","description":"Simple public key cryptography algorithms implemented in zig","archived":false,"fork":false,"pushed_at":"2024-11-24T22:25:24.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T05:48:20.986Z","etag":null,"topics":["cryptography","encryption-decryption","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eltNEG.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-08T16:56:57.000Z","updated_at":"2024-12-10T04:48:12.000Z","dependencies_parsed_at":"2024-11-11T00:27:52.793Z","dependency_job_id":"d5fe2382-6ae2-4022-b27c-41963f05dc5f","html_url":"https://github.com/eltNEG/kryptograzig","commit_stats":null,"previous_names":["eltneg/kryptograzig"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eltNEG%2Fkryptograzig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eltNEG%2Fkryptograzig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eltNEG%2Fkryptograzig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eltNEG%2Fkryptograzig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eltNEG","download_url":"https://codeload.github.com/eltNEG/kryptograzig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241144833,"owners_count":19917358,"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":["cryptography","encryption-decryption","zig"],"created_at":"2024-11-12T08:02:41.771Z","updated_at":"2026-06-05T21:31:23.734Z","avatar_url":"https://github.com/eltNEG.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cryptography\n\nSimple public key cryptography algorithms implemented in zig. For educational purposes only.\n\n## Algorithms\n- RSA\n- ElGamal\n\n## Installation\nFetch this dependency by running the following command in your project:\n```bash\nzig fetch --save git+https://github.com/eltNEG/kryptograzig#master\n```\n\nThen add the following to your `build.zig` file:\n```zig\nb.installArtifact(exe); // this line should already be in your build.zig file\n\nconst cryptography = b.dependency(\"kryptograzig\", .{\n    .target = target,\n    .optimize = optimize,\n});\n\nexe.root_module.addImport(\"kryptograzig\", cryptography.module(\"kryptograzig\"));\n```\n\n## Usage\nImport the library and use the functions as shown below:\n```zig\nconst std = @import(\"std\");\nconst kryptograzig = @import(\"kryptograzig\");\n\npub fn main() !void {\n    std.debug.print(\"Hello, world!\\n\", .{});\n    const r = kryptograzig.gcd(u8, 10, 5);\n    std.debug.print(\"gcd(10, 5) = {}\\n\", .{r});\n\n    const alloc = std.heap.page_allocator;\n    const factors = try kryptograzig.factorise(u128, alloc, 2 * 2 * 17 * 17 * 19 * 19 * 29 * 29 * 97 * 97 * 101 * 101 * 103 * 103);\n    defer alloc.free(factors);\n    std.debug.print(\"factors = {any}\\n\", .{factors});\n}\n```\n\n\n## Tests\n```bash\nzig build test\n```\n\n## Dependencies\n- [Zig v0.13.0](https://ziglang.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feltneg%2Fkryptograzig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feltneg%2Fkryptograzig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feltneg%2Fkryptograzig/lists"}