2 ms·
The real problem there is using an algorithm that gets slower on longer passwords. There's no need to have a cap bigger than a kilobyte though.
by Dylan16807 7y ago
The real problem there is using an algorithm that gets slower on longer passwords.
There's no need to have a cap bigger than a kilobyte though.
- rcxdude 7y agoIs there a cryptographic hash algorithm that doesn't? It seems like that would make it non-cryptographic (since you will need to read each byte at least once).
- Dylan16807 7y agoReading each byte once only takes a few microseconds. That's not the issue. What you need is for the slow core of the algorithm to be fixed-speed. Either by only reading the input bytes during initialization, or by only feeding a fixed number of input bytes into the core during each round.