7 ms·
This can only be fixed with a crypto hash function, that IMHO would be a premature optimization here. Users having this potential problem (key names are result
by antirez 15y ago
This can only be fixed with a crypto hash function, that IMHO would be a premature optimization here. Users having this potential problem (key names are result of external user inputs) can simply prefix the key with HMAC(key,secret) truncated to a few bytes.
- JoshTriplett 15y agoAt that point why not just use the HMAC and drop the weak hash entirely?