{"id":15447842,"url":"https://github.com/hazae41/paimon","last_synced_at":"2026-04-09T02:31:41.969Z","repository":{"id":61364055,"uuid":"551013633","full_name":"hazae41/paimon","owner":"hazae41","description":"WebAssembly port of RSA encryption and signatures","archived":false,"fork":false,"pushed_at":"2023-10-12T12:37:12.000Z","size":2377,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-26T21:12:13.749Z","etag":null,"topics":["browser","csprng","deno","dsa","encryption","javascript","prng","rsa","rust","signature","typescript","wasm","web","webassembly","webcrypto"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hazae41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-13T17:42:05.000Z","updated_at":"2023-09-03T14:49:18.000Z","dependencies_parsed_at":"2024-10-01T20:20:56.026Z","dependency_job_id":"36784cb8-b21e-4bea-87bc-75b8306dee5e","html_url":"https://github.com/hazae41/paimon","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":"0.030303030303030276","last_synced_commit":"37330071593513f3f44e472c51ebfb7613a729bd"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/hazae41/paimon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fpaimon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fpaimon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fpaimon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fpaimon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazae41","download_url":"https://codeload.github.com/hazae41/paimon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fpaimon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31582610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["browser","csprng","deno","dsa","encryption","javascript","prng","rsa","rust","signature","typescript","wasm","web","webassembly","webcrypto"],"created_at":"2024-10-01T20:20:35.594Z","updated_at":"2026-04-09T02:31:41.952Z","avatar_url":"https://github.com/hazae41.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv\u003e\n  \u003cimg align=\"right\" width=\"128\" src=\"https://user-images.githubusercontent.com/4405263/216624328-4827e1fd-1d1c-406e-9fb1-11b2612ac3d6.png\"/\u003e\n  \u003cp\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n# Paimon\n\nWebAssembly port of RSA encryption and signatures\n\n```bash\nnpm i @hazae41/paimon\n```\n\n[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/paimon) • [**Deno Module 🦖**](https://deno.land/x/paimon) • [**Next.js CodeSandbox 🪣**](https://codesandbox.io/p/github/hazae41/paimon-example-next)\n\n## Algorithms\n- RSA from RustCrypto (rsa)\n\n## Features\n- Reproducible building\n- Pre-bundled and streamed\n- Zero-copy memory slices\n\n## Usage\n\n```ts\nimport { Paimon, RsaPrivateKey } from \"@hazae41/paimon\";\n\n// Wait for WASM to load\nawait Paimon.initBundledOnce()\n\n// Generate an identity\nconst keypair = new RsaPrivateKey(1024)\nconst identity = keypair.to_public_key()\n\n// Define bytes to sign and padding to use\nconst bytes = new TextEncoder().encode(\"hello world\")\n\n// Sign and verify\nconst proof = keypair.sign_pkcs1v15_raw(bytes).copyAndDispose()\nconst verified = identity.verify_pkcs1v15_raw(bytes, proof)\n```\n\n## Building\n\n### Unreproducible building\n\nYou need to install [Rust](https://www.rust-lang.org/tools/install)\n\nThen, install [wasm-pack](https://github.com/rustwasm/wasm-pack)\n\n```bash\ncargo install wasm-pack\n```\n\nFinally, do a clean install and build\n\n```bash\nnpm ci \u0026\u0026 npm run build\n```\n\n### Reproducible building\n\nYou can build the exact same bytecode using Docker, just be sure you're on a `linux/amd64` host\n\n```bash\ndocker compose up --build\n```\n\nThen check that all the files are the same using `git status`\n\n```bash\ngit status --porcelain\n```\n\nIf the output is empty then the bytecode is the same as the one I commited\n\n### Automated checks\n\nEach time I commit to the repository, the GitHub's CI does the following:\n- Clone the repository\n- Reproduce the build using `docker compose up --build`\n- Throw an error if the `git status --porcelain` output is not empty\n\nEach time I release a new version tag on GitHub, the GitHub's CI does the following:\n- Clone the repository\n- Do not reproduce the build, as it's already checked by the task above\n- Throw an error if there is a `npm diff` between the cloned repository and the same version tag on NPM\n\nIf a version is present on NPM but not on GitHub, do not use!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Fpaimon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazae41%2Fpaimon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Fpaimon/lists"}