-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23a498b
commit 92f748e
Showing
3 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/local/bin/python3 | ||
""" | ||
Please fill in MESSAGE and KEY as needed | ||
""" | ||
import base64 | ||
|
||
MESSAGE = "" # base64 encoded message from Google | ||
|
||
KEY = "" # Your foobar username, usually your google username camel-cased | ||
|
||
result = [chr(ord(c) ^ ord(KEY[i % len(KEY)])) for i, c in enumerate(base64.b64decode(MESSAGE).decode("utf-8"))] | ||
print("".join(result)) |