AdamPflug / express-brute

Brute-force protection middleware for express routes by rate limiting incoming requests
MIT License
564 stars 90 forks source link

Consider using xxhash vs sha256 #70

Open SilentCicero opened 6 years ago

SilentCicero commented 6 years ago

You might want to consider a faster hashing algo for ID creation.

Such as: https://www.npmjs.com/package/xxhashjs

GAumala commented 5 years ago

Maybe there could be an option where user can set his/her own hash function? I'm not sure why is it needed to hash the key before inserting it to the store. Maybe it could also be disabled with this option just by setting the identity function...