class documentation

class CaesarCipher:

View In Hierarchy

Class for doing encryption and decryption using a Caesar cipher.

Method __init__ Construct Caesar cipher using given integer shift for rotation.
Method decrypt Return decrypted message given encrypted secret.
Method encrypt Return string representing encripted message.
Method _transform Utility to perform transformation based on given code string.
Instance Variable _backward Undocumented
Instance Variable _forward Undocumented
def __init__(self, shift):

Construct Caesar cipher using given integer shift for rotation.

def decrypt(self, secret):

Return decrypted message given encrypted secret.

def encrypt(self, message):

Return string representing encripted message.

def _transform(self, original, code):

Utility to perform transformation based on given code string.

_backward =

Undocumented

_forward =

Undocumented