def __init__(self, keys=None, exponential_mode=False): self.exponential_mode = exponential_mode Cipher.__init__(self, keys)
def __init__(self): Cipher.__init__(self) self.ctkey = string.ascii_uppercase self.ptkey = "-" * 26 self.decrypt_filter = lambda char: char in (string.ascii_letters + string.punctuation + " ") self.encrypt_filter = self.decrypt_filter