|
|
|
|
|
by mgdm
1015 days ago
|
|
Something that I'm not seeing mentioned in these comments (I may just have missed it) is that you can precompute the hash of the static part of the string and then extend it with the numbers in a loop, saving some cycles. This is because the full hex representation of a SHA hash gives you the entire internal state of the algorithm. This can lead to security vulnerabilities: https://en.m.wikipedia.org/wiki/Length_extension_attack |
|