Skip to content

Instantly share code, notes, and snippets.

@AnalogGhost
Created August 26, 2016 03:23
Show Gist options
  • Select an option

  • Save AnalogGhost/57fc26cd409f8baf4dd72fef5b58eea9 to your computer and use it in GitHub Desktop.

Select an option

Save AnalogGhost/57fc26cd409f8baf4dd72fef5b58eea9 to your computer and use it in GitHub Desktop.

Revisions

  1. AnalogGhost created this gist Aug 26, 2016.
    16 changes: 16 additions & 0 deletions warmup_Caesar.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #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](https://en.wikipedia.org/wiki/Caesar_cipher)

    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.