summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn1c00o <git.n1c00o@gmail.com>2021-10-20 20:46:36 +0200
committern1c00o <git.n1c00o@gmail.com>2021-10-20 20:46:36 +0200
commit9ba9045e5d3a28f003d61675bf02ef0786d8a0cb (patch)
treeaa1f0ba7832fe447cb43aeb14c191fd1c1245626
parent9fc3ad046be744e565497983b7832132d4723f3f (diff)
add for your eyes only
-rw-r--r--bonus_encoded/n1c00o/decode.py9
-rw-r--r--bonus_encoded/readme.md6
2 files changed, 15 insertions, 0 deletions
diff --git a/bonus_encoded/n1c00o/decode.py b/bonus_encoded/n1c00o/decode.py
new file mode 100644
index 0000000..6d0c30c
--- /dev/null
+++ b/bonus_encoded/n1c00o/decode.py
@@ -0,0 +1,9 @@
+from base64 import b64decode
+from itertools import cycle
+
+message = "FU4QGg8CFgMSUkwOFRNXQgsIF0hAQVQTDhkAUVRTRVVJSVlPSwQABAQQAVFRExwQSQwFCQMTBwNG VVYUEl1eUxwMBwYODRZXTVVLVVZcWVUYDA4KAhVUUFtVS0FbWF9TBQwHSEBBVAIAFw5dQUcXEFRJ RBwNBxZXTVVLUlpbFxBUSUQYBQ9SVxw="
+
+key = input("key for decode: ")
+for m, k in zip(b64decode(message), cycle(key)):
+ print(chr(m ^ ord(k)), end="")
+print()
diff --git a/bonus_encoded/readme.md b/bonus_encoded/readme.md
new file mode 100644
index 0000000..6645712
--- /dev/null
+++ b/bonus_encoded/readme.md
@@ -0,0 +1,6 @@
+after completing all challenges, you get an encoded message like `FU4QGg8CFgMSUkwOFRNXQgsIF0hAQVQTDhkAUVRTRVVJSVlPSwQABAQQAVFRExwQSQwFCQMTBwNG VVYUEl1eUxwMBwYODRZXTVVLVVZcWVUYDA4KAhVUUFtVS0FbWF9TBQwHSEBBVAIAFw5dQUcXEFRJ RBwNBxZXTVVLUlpbFxBUSUQYBQ9SVxw=`
+
+The = at the end can indicates the message is base64-encoded.
+
+I eventually found the key to be my account name (the one displayed as the user in google foobar).
+Found the code [here](https://www.oasys.net/posts/google-foobar-programming-challenge/#for-your-eyes-only)