express-brute
express-brute copied to clipboard
Fix crypto hash update invalid arg type error
Error happen when you provide a number as custom key:
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be one of type string, TypedArray, or DataView
at Hash.update (internal/crypto/hash.js:53:11)
at ...
To fix that, just force key parts to be a String