Skip to content

Instantly share code, notes, and snippets.

@CodeByLine
Forked from wynand1004/top_secret_decoder.py
Created December 30, 2017 03:56
Show Gist options
  • Save CodeByLine/3232be143fbe79de66c91ec72a7e5398 to your computer and use it in GitHub Desktop.
Save CodeByLine/3232be143fbe79de66c91ec72a7e5398 to your computer and use it in GitHub Desktop.
Top Secret Decoder Practice
# Top secret decoder
# The CIA has discovered a plot against a major city
# SIGINT has intercepted a message with the location and date of the attack
# Unfortunately, the message is encoded.
# Due to your awesome Python skills, you have been hired to decode the message
# A double agent has provided the encoding scheme which is as follows:
# All numbers need to be changed to spaces
# All capital letters should be changed to *
# The lowercase letter q is equal to \n
# All other lowercase letters should be ignored.
import os
os.system("clear")
print("""
## ### #
# # # #
# # ###
# # # #
## ### # #
CIA DECODER
01000011 01001001 01000001""")
cypher = "qGBH71VNT03FC874IYI00BKEqjO0A19O6W07W6S327W158PqWRN91JVS30AV8854W004EGCqJ9648pX5W1i7W6B555Az11925HqX6m313T9E35Y0V67RCC05AXCqq5R7478Hc567HKW08T6GqAD2t4p8AL2u80X3S71W6Dq3L2287Z997C3F64KjLhYq2O2976J182W8U7323JqNFB18NMAa52FDP7343Bq"
message = ""
# Your code starts here
# Your code ends here
print(message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment