AdamPflug / express-brute

Brute-force protection middleware for express routes by rate limiting incoming requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider using xxhash vs sha256

SilentCicero opened this issue · comments

commented

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

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

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