Created
June 6, 2019 06:41
-
-
Save lkallas/9c3371e5e36955671d3d301646b9081f to your computer and use it in GitHub Desktop.
Mooncascade secret message solution.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const msg = [125, 66, 69, 10, 67, 89, 10, 94, 66, 79, 10, 75, 95, 94, 66, 69, 88, 10, 69, 76, 10, 8, 126, 66, 79, 10, 98, 67, 94, 73, 66, 66, 67, 65, 79, 88, 13, 89, 10, 109, 95, 67, 78, 79, 10, 94, 69, 10, 94, 66, 79, 10, 109, 75, 70, 75, 82, 83, 8, 21, 10, 122, 70, 79, 75, 89, 79, 10, 89, 79, 68, 78, 10, 83, 69, 95, 88, 10, 75, 68, 89, 93, 79, 88, 10, 94, 69, 10, 64, 69, 72, 89, 106, 71, 69, 69, 68, 73, 75, 89, 73, 75, 78, 79, 4, 73, 69, 71, 6, 10, 93, 67, 94, 66, 10, 83, 69, 95, 88, 10, 105, 124, 10, 69, 88, 10, 102, 67, 68, 65, 79, 78, 99, 68, 10, 127, 120, 102, 4]; | |
let message = ''; | |
for (const charcode of msg) { | |
message += String.fromCharCode(charcode ^ 42); | |
} | |
console.log(message); // Who is the author of "The Hitchhiker's Guide to the Galaxy"? Please send your answer to jobs@mooncascade.com, with your CV or LinkedIn URL. | |
// Answer: Douglas Adams (source: https://en.wikipedia.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment