1.0.2 • Published 6 years ago

bcrypt-pbkdf v1.0.2

Weekly downloads
22,060,754
License
BSD-3-Clause
Repository
github
Last release
6 years ago

Port of the OpenBSD bcrypt_pbkdf function to pure Javascript. npm-ified version of Devi Mandiri's port, with some minor performance improvements. The code is copied verbatim (and un-styled) from Devi's work.

This product includes software developed by Niels Provos.

API

bcrypt_pbkdf.pbkdf(pass, passlen, salt, saltlen, key, keylen, rounds)

Derive a cryptographic key of arbitrary length from a given password and salt, using the OpenBSD bcrypt_pbkdf function. This is a combination of Blowfish and SHA-512.

See this article for further information.

Parameters:

  • pass, a Uint8Array of length passlen
  • passlen, an integer Number
  • salt, a Uint8Array of length saltlen
  • saltlen, an integer Number
  • key, a Uint8Array of length keylen, will be filled with output
  • keylen, an integer Number
  • rounds, an integer Number, number of rounds of the PBKDF to run

bcrypt_pbkdf.hash(sha2pass, sha2salt, out)

Calculate a Blowfish hash, given SHA2-512 output of a password and salt. Used as part of the inner round function in the PBKDF.

Parameters:

  • sha2pass, a Uint8Array of length 64
  • sha2salt, a Uint8Array of length 64
  • out, a Uint8Array of length 32, will be filled with output

License

This source form is a 1:1 port from the OpenBSD blowfish.c and bcrypt_pbkdf.c. As a result, it retains the original copyright and license. The two files are under slightly different (but compatible) licenses, and are here combined in one file. For each of the full license texts see LICENSE.

sshpkarchetype-librarychinjowwchinjowvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imagespecify-importsbabel-specify-imports@icanpm/api-master@arisageha/react-lazyload@cashremit/cr-streamline-iconsreact-native-template-rfbaseairscanairscan-examplebb-chathomebridge-airmega-nathanfjohnsonreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112gql_din_modmutasi-bca@jttechnic/interpreteropenid-passportnode-signify@olivervorasai/slidertypes-giscogoportutilsukor-remasterreact-native-slider-kfts-signifyexpand-react-bridge@everything-registry/sub-chunk-1221@apardellass/react-native-audio-stream@afria/afria-libraries@999-cs/game-stats@arm.tech/clckh@arielapaula/components@cute-apocalypse/react-tree@devorso/dcountdown@dinert/echarts@ct-note/image@ctiterm/ssh2@curtis.land/ssh2@donapot/mylibtest@dotconf-pro/dotconf-pro@dotconf-pro/dotenv@electerm/ssh2@electerm/ssh2-streams@edoroshenko/codemirror@eliteswap/token-lists@eliteswap/v2-coredate-to-block-ethdate-library-aa@alexshmyrkov/react-rangerdigital-keyboard-demosdesign-system-fitbank-450discord.js-bycondiscordjs-con-self@cweijan/ssh2@dan/cryptocoins-iconsdotenv-coredotex-plugin@hproinformatica/functionsdreijadrift-npm@humanity.cash/typesdskcorenewes-react-bridge@inti-ar/evm-chains@jaw-aid/npmpracticeexcel-csv-upload-test1excel-csv-upload-test2@kalkanisys/vue-selectex-ikon-components-library@ko-developerhong/react-native-multiple-image-pickerfenglin-uploader@linewit/vue-router-generator@luminati-io/ssh2@litedexdev/litedex-core-swapfhir2@lofcz/sweetalert2-neutralflowable-bpmn-modeler@kiwanoswap/v2-core@kodinghandle/bullswap-libevanutils@kumologica/runtime@kristoffertonning/vue-laravel-errors@luaeb/assetsfirst-app-lyfuci3.0.0warmaitech-gpt-3-encoderweb-elements-iconswebchewinx-form-winxzona-api-easy-xzona-chain-xzona-xwcq-vue
1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

8 years ago