{"id":18821140,"url":"https://github.com/compwright/defuse-node","last_synced_at":"2026-02-04T15:31:21.234Z","repository":{"id":147469414,"uuid":"539267131","full_name":"compwright/defuse-node","owner":"compwright","description":"Unofficial Javascript port of defuse/php-encryption for Node.js","archived":false,"fork":false,"pushed_at":"2024-10-02T17:38:21.000Z","size":754,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T10:19:56.765Z","etag":null,"topics":["cross-platform","encryption","javascript","php"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/defuse-node","language":"JavaScript","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/compwright.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"compwright"}},"created_at":"2022-09-21T02:09:15.000Z","updated_at":"2024-10-02T17:38:18.000Z","dependencies_parsed_at":"2025-04-14T00:26:55.442Z","dependency_job_id":"06a142c5-185f-4e9b-a229-5d161e015885","html_url":"https://github.com/compwright/defuse-node","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/compwright/defuse-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fdefuse-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fdefuse-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fdefuse-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fdefuse-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compwright","download_url":"https://codeload.github.com/compwright/defuse-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fdefuse-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386317,"owners_count":23150849,"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":["cross-platform","encryption","javascript","php"],"created_at":"2024-11-08T00:34:33.165Z","updated_at":"2026-02-04T15:31:21.205Z","avatar_url":"https://github.com/compwright.png","language":"JavaScript","funding_links":["https://github.com/sponsors/compwright"],"categories":[],"sub_categories":[],"readme":"# defuse-node\n\nJavascript port of [defuse/php-encryption](https://github.com/defuse/php-encryption) for Node.js.\n\n\u003e This is an unofficial port. The creators of defuse/php-encryption recommend libsodium for cross-platform use cases. Use this library at your own risk :bangbang:\n\nThis port implements everything in the official library EXCEPT for:\n\n* File\n* Crypto.legacyDecrypt()\n\nFor a compatibility demo, see https://github.com/compwright/defuse-node-compat-demo\n\nIf you would like to contribute any missing part, feel free to open a pull request.\n\n## Requirements\n\nNode.js 16+ with OpenSSL\n\n## Installation\n\nWith NPM:\n\n```\n$ npm install --save defuse-node\n```\n\nWith Yarn:\n\n```\n$ yarn add defuse-node\n```\n\n## Quick Start\n\n```javascript\nimport { Key, Crypto } from 'defuse-node'\n\nconst key = Key.loadFromAsciiSafeString('...')\n\n// Encrypt\nconst data = 'Hello, world'\nconst ciphertext = Crypto.encrypt(data, key)\n\n// Decrypt\nconst plaintext = Crypto.decrypt(ciphertext, key)\n```\n\n## Documentation\n\nSee https://github.com/defuse/php-encryption#getting-started\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fdefuse-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompwright%2Fdefuse-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fdefuse-node/lists"}