Skip to content

Instantly share code, notes, and snippets.

@AnalogGhost
Created August 26, 2016 03:23
Show Gist options
  • Save AnalogGhost/57fc26cd409f8baf4dd72fef5b58eea9 to your computer and use it in GitHub Desktop.
Save AnalogGhost/57fc26cd409f8baf4dd72fef5b58eea9 to your computer and use it in GitHub Desktop.
Caesar Cipher

#Caesar Cipher In cryptography, a Caesar cipher (also known as a shift cipher) is a type of substitution cipher where each letter in the plaintext is replaced a letter some fixed number of positions down the alphabet.

More Details

Warm Up Activity.

  1. Create a function that will take in plaintext and a shift number and return the encoded ciphertext.
  2. Create a function that will take in the ciphertext a shift number and return plaintext.

Notes -

  1. Only letters should be shifted. All other laters should be ignored.

Warning - The Caesar cipher is ridiculously weak and easily broken. This will provide virtually no security.

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