Skip to content

Instantly share code, notes, and snippets.

@epoch
Created November 7, 2014 03:06
Show Gist options
  • Save epoch/21c0133143f03226cee0 to your computer and use it in GitHub Desktop.
Save epoch/21c0133143f03226cee0 to your computer and use it in GitHub Desktop.

Quiz - Decode this message!

Write a program to decode this message:

FRZDUGV GLH PDQB WLPHV EHIRUH WKHLU GHDWKV, WKH YDOLDQW QHYHU WDVWH RI GHDWK EXW RQFH.

This is a form of cryptography known as the Caesar Ciper. It has a shift parameter of 3.

The alphabet is normally:

ABCDEFGHIJKLMNOPQRSTUVWXYZ

The alphabet with the shift parameter of 3 is now as follows:

DEFGHIJKLMNOPQRSTUVWXYZABC


Extension:

Write the program to encode plain text into messages.

CasearCipher.encode('TWO SYMBOLS KISSING EACH OTHER')

Extension 2:

Write the program to endcode it with any shift parameter.

Send each other secret messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment