We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If .hash() is fed an empty string, it throws this error:
{ [Error: Input key is empty] propertyValue: <Buffer > }
Code to reproduce the issue:
var scrypt = require('scrypt-for-humans'); var Promise = require('bluebird'); Promise.try(function(){ return scrypt.hash(""); }).then(function(hash){ console.log(hash); }).catch(function (err) { console.log(err); });
It should instead throw an error of type scrypt.InputError.
The text was updated successfully, but these errors were encountered:
To add to this, if you give .verify() an empty string, it throws this error:
.verify()
{ err_code: 2, err_message: 'Module addon argument error: key cannot be empty' }
Sorry, something went wrong.
No branches or pull requests
If .hash() is fed an empty string, it throws this error:
Code to reproduce the issue:
It should instead throw an error of type scrypt.InputError.
The text was updated successfully, but these errors were encountered: