{"id":16416644,"url":"https://github.com/angeal185/whirlpool-js","last_synced_at":"2026-05-12T12:07:09.355Z","repository":{"id":58235898,"uuid":"186241700","full_name":"angeal185/whirlpool-js","owner":"angeal185","description":"whirlpool 512 bit hash in javascript for electron and the browser","archived":false,"fork":false,"pushed_at":"2019-05-12T15:22:30.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T17:43:33.345Z","etag":null,"topics":["browser","electron","hash","hashing","hashing-algorithm","javascript","whirlpool"],"latest_commit_sha":null,"homepage":"https://angeal185.github.io/whirlpool-js","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/angeal185.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}},"created_at":"2019-05-12T10:39:35.000Z","updated_at":"2021-11-04T16:39:34.000Z","dependencies_parsed_at":"2022-08-31T09:41:53.532Z","dependency_job_id":null,"html_url":"https://github.com/angeal185/whirlpool-js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2Fwhirlpool-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2Fwhirlpool-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2Fwhirlpool-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2Fwhirlpool-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angeal185","download_url":"https://codeload.github.com/angeal185/whirlpool-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240466791,"owners_count":19805862,"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":["browser","electron","hash","hashing","hashing-algorithm","javascript","whirlpool"],"created_at":"2024-10-11T07:09:45.705Z","updated_at":"2026-05-12T12:07:04.315Z","avatar_url":"https://github.com/angeal185.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# whirlpool-js\nwhirlpool 512 bit hash in javascript for electron and the browser\n\nDemo: https://angeal185.github.io/whirlpool-js\n\n### Installation\n\nnpm\n\n```sh\n$ npm install whirlpool-js --save\n```\n\nbower\n\n```sh\n$ bower install whirlpool-js\n```\n\ngit\n```sh\n$ git clone git@github.com:angeal185/whirlpool-js.git\n```\n\n### electron\n\n```js\nconst wp = require('whirlpool-js');\n```\n\n#### browser\n\n```html\n\u003cscript src=\"./dist/whirlpool-js.min.js\"\u003e\u003c/script\u003e\n```\n\n#### Digests\n* hex: returns hash as a hex encoded string\n* base64: returns hash as a base64 encoded string\n* bytes: returns hash as a byte string\n* Uint8: returns hash as a Uint8Array\n* ArrayBuffer: returns hash as an arraybuffer\n\n#### API\n\n```javascript\n\n/**\n *  sync\n *  @param {string} str ~ valid string to be hashed\n *  @param {string} digest ~ hex/base64/Uint8/ArrayBuffer/bytes\n **/\nwp.encSync(str, digest)\n\n\n/**\n *  callback\n *  @param {string} str ~ valid string to be hashed\n *  @param {string} digest ~ hex/base64/Uint8/ArrayBuffer/bytes\n *  @param {function} cb ~ callback function(err,res)\n **/\nwp.enc(str, digest, cb)\n\n\n/**\n *  promise\n *  @param {string} str ~ valid string to be hashed\n *  @param {string} digest ~ hex/base64/Uint8/ArrayBuffer/bytes\n **/\nwp.encP(str, digest)\n\n\n// demo\nconst str = 'test';\n\n//sync\nlet sync = wp.encSync(str, 'hex');\nconsole.log(sync);\n//returns hex encoded hash\n\n\n//callback\nwp.enc(str, 'base64', function(err, res){\n  if(err){return console.log(err)}\n\n  console.log(res)\n  //returns base64 encoded hash\n});\n\n\n//promise\nwp.encP(str, 'Unit8').then(function(res){\n\n  console.log(res);\n  //returns Unit8Array of hash\n\n}).catch(function(err){\n\n  console.log(err);\n\n}).then(function(){\n\n  console.log('done');\n\n})\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeal185%2Fwhirlpool-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangeal185%2Fwhirlpool-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeal185%2Fwhirlpool-js/lists"}