Run bcrypt.compare()
as an AWS Lambda function. For bcrypt.hash()
as a Lambda function, see tigerzord
.
dragonzord
uses the Lambda function interface in the following manner:
event
- The following properties are expected in theevent
argument.value
(string) - The plaintext value to compare.hash
(string) - The hash to comparevalue
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 ofcompare()
.