JSPM

@sequencemedia/pbkdf2

1.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 239
  • Score
    100M100P100Q109801F
  • License ISC

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 hash is decoded to a Buffer
  • The salt is 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