Last active
September 27, 2018 01:54
-
-
Save benrules2/f70742b48bbe8263d364ad6d0952a1fb to your computer and use it in GitHub Desktop.
Shift Cipher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ShiftCipher: | |
def __init__(self, N = 13): | |
self.original_alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m", | |
"n","o","p","q","r","s","t","u","v","w","x","y","z"] | |
self.cipher_alphabet = self.original_alphabet[N:] | |
self.cipher_alphabet.extend(self.original_alphabet[0:N]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment