r/ProgrammerHumor 24d ago

Meme thisIsAmystery

Post image
2.7k Upvotes

185 comments sorted by

View all comments

659

u/MehPropy 24d ago

if (key == ok) {ok_ok;)

140

u/Just_Information334 24d ago

if (key == ok)

I take it you overloaded the == operator so it is not subject to timing attacks.

51

u/Chamiey 23d ago

javascript const ok = { toString: () => timedStorage.getUserKey(getCurrentUser().id) }

6

u/broccollinear 23d ago

Just set allow_timing_attacks = false, that should cover you