Open
Description
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.