Files
PypherStream/Autokey.py
2019-03-31 00:37:49 -04:00

40 lines
1.2 KiB
Python

#PypherStream/Autokey.py
#Matthew Ellison
# Created: 03-30-19
#Modified: 03-30-19
#This file contains the Autokey class for the PypherStream Project.
#This class takes input and uses a Autokey Cipher to encode or decode a message.
#This is a Python port of the CipherStream program found at https://bitbucket.org/Mattrixwv/CipherStream
from Vigenere import Vigenere
class Autokey(Vigenere):
__version = "1.0" #The version of the library
def __init__(self):
NotImplemented
#Special rules for setting the strings for encoding
def __encodeSet(self, key: str, input: str):
NotImplemented
#Setting the strings for decoding
def __decodeSet(self, key: str, input: str):
NotImplemented
#Decodes the inputString
def __decode(self) -> str:
NotImplemented
#Encodes inputString using the Autokey cipher
def encode(self, key: str, input: str) -> str:
NotImplemented
#Decodes inputString using the Autokey cipher
def decode(self, key: str, input: str) -> str:
NotImplemented
#Returns the version number of the library
@classmethod
def getVersion(self):
NotImplemented
#This will run the appropriate commands if this script is called stand alone instead of with the rest of the PypherStream program
if __name__ == "__main__":
NotImplemented