mirror of
https://bitbucket.org/Mattrixwv/pypherstream.git
synced 2025-12-06 10:33:58 -05:00
40 lines
1.2 KiB
Python
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
|