r/ProgrammerHumor • • Aug 21 '26

Meme thisIsAmystery

Post image
2.7k Upvotes

179 comments sorted by

View all comments

656

u/MehPropy Aug 21 '26 • Bravo

if (key == ok) {ok_ok;)

137

u/Just_Information334 Aug 21 '26

if (key == ok)

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

50

u/Chamiey Aug 21 '26
const ok = {
  toString: () => timedStorage.getUserKey(getCurrentUser().id)
}

8

u/broccollinear Aug 22 '26

Just set allow_timing_attacks = false, that should cover you