{"id":13539497,"url":"https://github.com/jzeuzs/sodium","last_synced_at":"2025-10-05T01:31:35.158Z","repository":{"id":37940982,"uuid":"470519823","full_name":"jzeuzs/sodium","owner":"jzeuzs","description":"Libsodium for Node.js","archived":true,"fork":false,"pushed_at":"2023-07-28T19:01:03.000Z","size":5371,"stargazers_count":14,"open_issues_count":12,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T02:43:37.248Z","etag":null,"topics":["dryoc","libsodium","napi","napi-rs","nodejs","rust","sodium"],"latest_commit_sha":null,"homepage":"https://devtomio.github.io/sodium","language":"Rust","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/jzeuzs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-03-16T09:45:26.000Z","updated_at":"2024-03-14T22:41:33.000Z","dependencies_parsed_at":"2023-01-21T14:00:50.052Z","dependency_job_id":null,"html_url":"https://github.com/jzeuzs/sodium","commit_stats":null,"previous_names":["jzeuzs/sodium","devtomio/sodium"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/jzeuzs/sodium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fsodium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fsodium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fsodium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fsodium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jzeuzs","download_url":"https://codeload.github.com/jzeuzs/sodium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fsodium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278241166,"owners_count":25954375,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"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":["dryoc","libsodium","napi","napi-rs","nodejs","rust","sodium"],"created_at":"2024-08-01T09:01:26.718Z","updated_at":"2025-10-05T01:31:34.680Z","avatar_url":"https://github.com/jzeuzs.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# @devtomio/sodium\n\n**\u003ca href=\"https://libsodium.gitbook.io\"\u003eLibsodium\u003c/a\u003e for \u003ca href=\"https://nodejs.org\"\u003eNode.js\u003c/a\u003e**\n\n[![GitHub](https://img.shields.io/github/license/devtomio/sodium)](https://github.com/devtomio/sodium/blob/main/LICENSE)\n[![Continuous Delivery](https://github.com/devtomio/sodium/actions/workflows/continuous-delivery.yml/badge.svg)](https://github.com/devtomio/sodium/actions/workflows/continuous-delivery.yml)\n[![Continuous Integration](https://github.com/devtomio/sodium/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/devtomio/sodium/actions/workflows/continuous-integration.yml)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium?color=crimson\u0026logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/@devtomio/sodium)\n\n**Packages**\n\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-android-arm64?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-android-arm64)](https://www.npmjs.com/package/@devtomio/sodium-android-arm64)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-darwin-arm64?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-darwin-arm64)](https://www.npmjs.com/package/@devtomio/sodium-darwin-arm64)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-darwin-x64?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-darwin-x64)](https://www.npmjs.com/package/@devtomio/sodium-darwin-x64)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-freebsd-x64?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-freebsd-x64)](https://www.npmjs.com/package/@devtomio/sodium-freebsd-x64)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-linux-arm64-gnu?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-linux-arm64-gnu)](https://www.npmjs.com/package/@devtomio/sodium-linux-arm64-gnu)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-linux-arm64-musl?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-linux-arm64-musl)](https://www.npmjs.com/package/@devtomio/sodium-linux-arm64-musl)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-linux-x64-gnu?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-linux-x64-gnu)](https://www.npmjs.com/package/@devtomio/sodium-linux-x64-gnu)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-linux-x64-musl?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-linux-x64-musl)](https://www.npmjs.com/package/@devtomio/sodium-linux-x64-musl)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-win32-x64-msvc?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-win32-x64-msvc)](https://www.npmjs.com/package/@devtomio/sodium-win32-x64-msvc)\n[![npm](https://img.shields.io/npm/v/@devtomio/sodium-linux-arm-gnueabihf?color=crimson\u0026logo=npm\u0026style=flat-square\u0026label=@devtomio/sodium-linux-arm-gnueabihf)](https://www.npmjs.com/package/@devtomio/sodium-linux-arm-gnueabihf)\n\n\u003c/div\u003e\n\n## Features\n\n-   Fully ready for TypeScript!\n-   Includes ESM ready entrypoint\n-   Easy to use\n-   Has the same API as libsodium\n-   Faster than similar libraries (see [benchmarks](#benchmarks))\n-   Powered by [Rust](https://github.com/brndnmtthws/dryoc)\n\n---\n\n## Usage\n\n**_For complete usages, please dive into our [documentation]_**\n\n### Basic usage\n\nGenerating a keypair\n\n```typescript\nimport * as sodium from '@devtomio/sodium';\n\nconst { public_key, secret_key } = sodium.crypto_box_keypair();\n```\n\n## Benchmarks\n\n```sh\n$ yarn bench\n\nRunning \"keypair generation\" suite...\nProgress: 100%\n\n  libsodium-wrappers:\n    5 109 ops/s, ±3.12%    | 85.44% slower\n\n  tweetnacl:\n    1 108 ops/s, ±1.11%    | slowest, 96.84% slower\n\n  chloride:\n    21 946 ops/s, ±7.45%   | 37.46% slower\n\n  sodium:\n    23 691 ops/s, ±1.00%   | 32.49% slower\n\n  @devtomio/sodium:\n    35 092 ops/s, ±2.84%   | fastest\n\nFinished 5 cases!\n  Fastest: @devtomio/sodium\n  Slowest: tweetnacl\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://tomio.codes/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/75403863?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTomio\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/devtomio/sodium/commits?author=devtomio\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/devtomio/sodium/commits?author=devtomio\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#example-devtomio\" title=\"Examples\"\u003e💡\u003c/a\u003e \u003ca href=\"#ideas-devtomio\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"#infra-devtomio\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"#maintenance-devtomio\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"#platform-devtomio\" title=\"Packaging/porting to new platform\"\u003e📦\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://renovate.whitesourcesoftware.com/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/25180681?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eWhiteSource Renovate\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#maintenance-renovate-bot\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/apps/renovate\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/in/2740?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003erenovate[bot]\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#maintenance-renovate[bot]\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n## License\n\nThis software is released under the MIT License, see [LICENSE](https://github.com/devtomio/sodium/blob/main/LICENSE).\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fdevtomio%2Fsodium.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fdevtomio%2Fsodium?ref=badge_large)\n\n[documentation]: https://devtomio.github.io/sodium\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzeuzs%2Fsodium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjzeuzs%2Fsodium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzeuzs%2Fsodium/lists"}