{"id":17399250,"url":"https://github.com/feross/simple-sha256","last_synced_at":"2025-09-13T00:32:32.587Z","repository":{"id":54200314,"uuid":"136242280","full_name":"feross/simple-sha256","owner":"feross","description":"Generate SHA-256 hashes (in Node and the Browser)","archived":false,"fork":false,"pushed_at":"2023-09-19T00:37:48.000Z","size":9,"stargazers_count":49,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T22:22:41.460Z","etag":null,"topics":["crypto","hash","javascript","nodejs","sha-256","sha256"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/feross.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-05T22:38:08.000Z","updated_at":"2024-08-31T06:37:43.000Z","dependencies_parsed_at":"2024-06-18T15:31:59.482Z","dependency_job_id":"7c32081d-90b6-4a61-a875-d8b91ab44e8d","html_url":"https://github.com/feross/simple-sha256","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"6f5f7858b7dc900df3326803d3106a6c36ebfa15"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fsimple-sha256","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fsimple-sha256/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fsimple-sha256/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fsimple-sha256/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/simple-sha256/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232730948,"owners_count":18567803,"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":["crypto","hash","javascript","nodejs","sha-256","sha256"],"created_at":"2024-10-16T15:14:07.755Z","updated_at":"2025-01-07T00:16:08.003Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-sha256 [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/simple-sha256/master.svg\n[travis-url]: https://travis-ci.org/feross/simple-sha256\n[npm-image]: https://img.shields.io/npm/v/simple-sha256.svg\n[npm-url]: https://npmjs.org/package/simple-sha256\n[downloads-image]: https://img.shields.io/npm/dm/simple-sha256.svg\n[downloads-url]: https://npmjs.org/package/simple-sha256\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Generate SHA-256 hashes (in Node and the Browser)\n\nIn Node.js, this package uses [`crypto.createHash()`](https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm_options). In the browser, it uses [`crypto.subtle.digest()`](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest).\n\n### install\n\n```\nnpm install simple-sha256\n```\n\n### usage\n\nAsync (returns a `Promise`):\n\n```js\nconst sha256 = require('simple-sha256')\n\ninit()\n\nasync function init () {\n  const hash = await sha256('hey there')\n  console.log(hash)\n  // 74ef874a9fa69a86e091ea6dc2668047d7e102d518bebed19f8a3958f664e3da\n}\n```\n\nSync:\n\n```js\nconst sha256 = require('simple-sha256')\nconsole.log(sha256.sync('hey there'))\n// 74ef874a9fa69a86e091ea6dc2668047d7e102d518bebed19f8a3958f664e3da\n```\n\n### see also\n\n- [simple-sha1](https://www.npmjs.com/package/simple-sha1)\n\n### license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](https://feross.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fsimple-sha256","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Fsimple-sha256","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fsimple-sha256/lists"}