joi-drupal-hash

Use Joi to check a string against a Drupal password hash

Usage no npm install needed!

<script type="module">
  import joiDrupalHash from 'https://cdn.skypack.dev/joi-drupal-hash';
</script>

README

joi-drupal-hash

Allows you to validate a string against a Drupal password hash. So sorry.

Usage

require('joi-drupal-hash');
require('joi');
Joi.validate('my-secret-password', Joi.string().drupalHash('myHashedPassword'));