The Overflow Modulus Trap
A submission stores hashes in unsigned long long and never takes an explicit modulus, letting wraparound act as . It gets hacked. The author's fix is to keep but pick the base p at random from a large set at program start, reasoning that an attacker cannot build a test against a base they do not know. Does that work?
Sign in to answer questions and track your progress
Sign In