Package Exports
- @sequencemedia/pbkdf2
- @sequencemedia/pbkdf2/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sequencemedia/pbkdf2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@sequencemedia/pbkdf2
ES functions are exported from package root alongside a TS definition
Password validation
A password can be validated against a hash and salt (and the number of iterations that were used to compute it)
Both the hash and salt are expected from the command line to be strings in Base64 format
- The
hashis decoded to aBuffer - The
saltis transformed from Base64 into ASCII
You can use these utilities from the shell or as part of a Node application
Tests
npm test
bash ./compare.sh