Jack is a programmer working in an IT company. One day he arrives at his workplace and sees a briefcase on the table with a note attached to it that says: "g00d and 3v1l". He realizes - this must be his coworkers, who put it there. They had a party yesterday and he might have had a little bit too much to drink, so he started bragging about how he hacked his friend's email (even thought he just guessed his secret question), and how he could hack anything if he wanted to. Now to avoid looking like a fool it seems like he has to open this case... The case has a 4-digit code on it.
Help Jack solve this puzzle and pick a code to the case.
Tip 1:
"and" could be spelled "4nd", but why is it not?
Tip 2:
the whole thing could have all sorts of weird symbols in it if it was true leetspeak, but it's limited to letters and numbers...
Added after initial post:
Tip 3:
it would be nice if the message didn't have those pesky "g,v,l" letters, but oh...
Tip 4 (first digit):
the first digit is 3.
The answer:
The code is "3095". "g00d", "3v1l" are in fact numbers with base of 36 (10 digits and 26 letters of English alphabet) so they correspond to "746509", "180201" in decimal. Now the "and" word is of course a bitwise AND operation, which gives decimal 140297. Now you convert that number back to 36 base representation and you get string "3095".
P.S. Sorry if it was too ambiguous. It was hard for me to tell if it was dead easy or very hard because I thought that up. Actually, I knew it was hard, but after Tip #3... not so much. I mean, just look at Mathias711's answer, who would have thought of that :O, that would be definitely a harder way to hide the password.