dragonzord

bcrypt.compare as a lambda function.

Usage no npm install needed!

<script type="module">
  import dragonzord from 'https://cdn.skypack.dev/dragonzord';
</script>

README

dragonzord

Current Version Build Status Dependencies

belly-button-style

Run bcrypt.compare() as an AWS Lambda function. For bcrypt.hash() as a Lambda function, see tigerzord.

API

dragonzord uses the Lambda function interface in the following manner:

  • event - The following properties are expected in the event argument.
    • value (string) - The plaintext value to compare.
    • hash (string) - The hash to compare value against.
  • context - Unused.
  • callback(err, result) - A typical Node.js error first callback. If no error occurs, result will be a Boolean representing the result of compare().