3 ms·
I used a similar technique to obfuscate the answers in a silly TV quiz[0] I wrote a couple of years ago. I have a terrible habit of looking at the source of we
by AndrewStephens 4y ago
I used a similar technique to obfuscate the answers in a silly TV quiz[0] I wrote a couple of years ago.
I have a terrible habit of looking at the source of web-based puzzles to discover the solutions and wanted to make something where that was impossible.
My solution was to use the given answers as the key to decode a small blob of data. Multiple correct answers (different spellings) were handled by simply encoding the blob multiple times and trying them all.
Everything happens client side but at no time does the client store any information about the answers unless the user proves they know them by typing them in.
[0] https://sheep.horse/2020/4/tv_opening_sequences_quiz.html https://sheep.horse/2020/4/tv_opening_sequences_quiz.html