Skip to content

Instantly share code, notes, and snippets.

@lyntco
Last active September 7, 2017 21:58
Show Gist options
  • Save lyntco/85ca92a9c8b96bac27d9 to your computer and use it in GitHub Desktop.
Save lyntco/85ca92a9c8b96bac27d9 to your computer and use it in GitHub Desktop.
Quiz - Decode this message!

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.

@Ekultek
Copy link

Ekultek commented Sep 7, 2017

COWARDS DIE MANY TIMES BEFORE THEIR DEATHS THE VALIANT NEVER TASTE OF DEATH BUT ONCE

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