{"id":13526514,"url":"https://github.com/TritonDataCenter/node-bcrypt-pbkdf","last_synced_at":"2025-04-01T07:32:49.497Z","repository":{"id":57189347,"uuid":"65848667","full_name":"TritonDataCenter/node-bcrypt-pbkdf","owner":"TritonDataCenter","description":"Port of the OpenBSD `bcrypt_pbkdf` function to pure Javascript","archived":false,"fork":false,"pushed_at":"2019-10-20T17:09:19.000Z","size":13,"stargazers_count":7,"open_issues_count":2,"forks_count":7,"subscribers_count":36,"default_branch":"master","last_synced_at":"2024-05-21T13:03:36.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TritonDataCenter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-16T19:44:39.000Z","updated_at":"2022-04-26T00:41:07.000Z","dependencies_parsed_at":"2022-08-30T14:20:47.537Z","dependency_job_id":null,"html_url":"https://github.com/TritonDataCenter/node-bcrypt-pbkdf","commit_stats":null,"previous_names":["joyent/node-bcrypt-pbkdf"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TritonDataCenter%2Fnode-bcrypt-pbkdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TritonDataCenter%2Fnode-bcrypt-pbkdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TritonDataCenter%2Fnode-bcrypt-pbkdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TritonDataCenter%2Fnode-bcrypt-pbkdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TritonDataCenter","download_url":"https://codeload.github.com/TritonDataCenter/node-bcrypt-pbkdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221211583,"owners_count":16777605,"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-01T06:01:30.851Z","updated_at":"2024-11-02T11:31:16.508Z","avatar_url":"https://github.com/TritonDataCenter.png","language":"JavaScript","readme":"Port of the OpenBSD `bcrypt_pbkdf` function to pure Javascript. `npm`-ified\nversion of [Devi Mandiri's port](https://github.com/devi/tmp/blob/master/js/bcrypt_pbkdf.js),\nwith some minor performance improvements. The code is copied verbatim (and\nun-styled) from Devi's work.\n\nThis product includes software developed by Niels Provos.\n\n## API\n\n### `bcrypt_pbkdf.pbkdf(pass, passlen, salt, saltlen, key, keylen, rounds)`\n\nDerive a cryptographic key of arbitrary length from a given password and salt,\nusing the OpenBSD `bcrypt_pbkdf` function. This is a combination of Blowfish and\nSHA-512.\n\nSee [this article](http://www.tedunangst.com/flak/post/bcrypt-pbkdf) for\nfurther information.\n\nParameters:\n\n * `pass`, a Uint8Array of length `passlen`\n * `passlen`, an integer Number\n * `salt`, a Uint8Array of length `saltlen`\n * `saltlen`, an integer Number\n * `key`, a Uint8Array of length `keylen`, will be filled with output\n * `keylen`, an integer Number\n * `rounds`, an integer Number, number of rounds of the PBKDF to run\n\n### `bcrypt_pbkdf.hash(sha2pass, sha2salt, out)`\n\nCalculate a Blowfish hash, given SHA2-512 output of a password and salt. Used as\npart of the inner round function in the PBKDF.\n\nParameters:\n\n * `sha2pass`, a Uint8Array of length 64\n * `sha2salt`, a Uint8Array of length 64\n * `out`, a Uint8Array of length 32, will be filled with output\n\n## License\n\nThis source form is a 1:1 port from the OpenBSD `blowfish.c` and `bcrypt_pbkdf.c`.\nAs a result, it retains the original copyright and license. The two files are\nunder slightly different (but compatible) licenses, and are here combined in\none file. For each of the full license texts see `LICENSE`.\n","funding_links":[],"categories":["Repository"],"sub_categories":["Crypto"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTritonDataCenter%2Fnode-bcrypt-pbkdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTritonDataCenter%2Fnode-bcrypt-pbkdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTritonDataCenter%2Fnode-bcrypt-pbkdf/lists"}