This file contains hidden or 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 ClearCipher: | |
def __init__(self, key=3): | |
self.alphabet = "abcdefghijklmnopqrstuvwxyz" | |
self.numbers = "0123456789" | |
self.key = key | |
def encode(self, input_data): | |
"""encoding text with shift""" | |
result = "" | |
for char in input_data: |