{"id":13602516,"url":"https://github.com/nodejs/webcrypto","last_synced_at":"2025-10-04T01:31:20.230Z","repository":{"id":65977068,"uuid":"190637069","full_name":"nodejs/webcrypto","owner":"nodejs","description":"This repository has been archived. The WebCrypto API has been implemented in recent versions of Node.js and does not require additional packages.","archived":true,"fork":false,"pushed_at":"2020-10-16T12:39:43.000Z","size":98,"stargazers_count":69,"open_issues_count":5,"forks_count":20,"subscribers_count":67,"default_branch":"master","last_synced_at":"2024-10-29T16:11:48.718Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/nodejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-06T19:20:37.000Z","updated_at":"2024-06-21T09:04:09.000Z","dependencies_parsed_at":"2023-02-19T19:15:26.875Z","dependency_job_id":null,"html_url":"https://github.com/nodejs/webcrypto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fwebcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fwebcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fwebcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fwebcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodejs","download_url":"https://codeload.github.com/nodejs/webcrypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234885928,"owners_count":18901829,"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":[],"created_at":"2024-08-01T18:01:26.034Z","updated_at":"2025-10-04T01:31:19.886Z","avatar_url":"https://github.com/nodejs.png","language":"JavaScript","readme":"# WebCrypto Prototype for Node.js\n\nThis is a partial and experimental WebCrypto implementation for the Node.js\nplatform.\n\n## Asynchonicity\n\nThe WebCrypto specification requires almost all operations to be completed\nasynchronously, however, Node.js implements very few operations asynchronously.\nUsually, this is not a problem, since most cryptographic functions are\nincredibly fast compared to the overhead that comes with asynchronicity,\nand because Node.js implements most cryptographic features through efficient\nstreaming interfaces. WebCrypto has no streaming interfaces but only one-shot\nAPIs. Encrypting, hashing, signing or verifying large amounts of data is thus\ndifficult in WebCrypto without underlying asynchronous APIs.\n\n## Development\n\n### Structure\n\nThe main export of this package is implemented in `lib/index.js` and represents\nthe `Crypto` interface as defined in section 10 of the\n[WebCrypto specification][]. It contains two members:\n\n- The `subtle` attribute is implemented in `lib/subtle.js`, including all\n  methods described in section 14.3 of the WebCrypto specification. These\n  methods usually delegate work to one or more cryptographic operations\n  that are listed in section 18.2.2 and implemented in `lib/algorithms/`.\n- The `getRandomValues` function is implemented in `lib/random.js`.\n\n### Tests\n\nThe `test` directory contains a small number of unit tests. All of these tests\nare required to pass after each commit. You can run unit tests using `npm test`.\n\nA coverage report can be generated using the command `npm run coverage`.\n\nA subset of web-platform-tests can also be used for testing. The `test/wpt/wpt`\nsubmodule must be initialized in order to use them. You can run the WPTs\nusing `npm run wpt`. Proposed changes do not need to pass all WPTs, but they\nshould not break tests that passed without the changes.\n\n### Linting\n\nThis repository uses ESLint. Use `npm run lint` to check the code.\n\n[WebCrypto specification]: https://www.w3.org/TR/WebCryptoAPI/\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs%2Fwebcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodejs%2Fwebcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs%2Fwebcrypto/lists"}