mirror of
https://bitbucket.org/Mattrixwv/pypherstream.git
synced 2025-12-06 18:43:58 -05:00
51 lines
1.6 KiB
Python
51 lines
1.6 KiB
Python
#PypherStream/Morse.py
|
|
#Matthew Ellison
|
|
# Created: 03-30-19
|
|
#Modified: 03-30-19
|
|
#This file contains the Morse class for the PypherStream Project.
|
|
#This class takes input and uses a Morse Cipher to encode or decode a message.
|
|
#This is a Python port of the CipherStream program found at https://bitbucket.org/Mattrixwv/CipherStream
|
|
|
|
|
|
class Morse:
|
|
__version = "1.0"
|
|
__code = [""] #Holds the Morse representation of the alphanumeric characters
|
|
def __init__(self):
|
|
self.__inputString = "" #The string that needs encoded/decoded
|
|
self.__outputString = "" #The encoded/decoded message
|
|
#Encodes inputString snd stores the result in outputString
|
|
def __encode(self) -> str:
|
|
NotImplemented
|
|
#Decodes inputString snd stores the result in outputString
|
|
def __decode(self) -> str:
|
|
NotImplemented
|
|
#Encodes input and returns the result
|
|
def __setEncodeInputString(self, input: str):
|
|
NotImplemented
|
|
#Decodes input and returns the result
|
|
def __setDecodeInputString(self, input: str):
|
|
NotImplemented
|
|
#Returns inputString
|
|
def getInputString(self) -> str:
|
|
NotImplemented
|
|
#Returns outputString
|
|
def getOutputString(self) -> str:
|
|
NotImplemented
|
|
#Encodes input and returns the result
|
|
def encode(self, input: str) -> str:
|
|
NotImplemented
|
|
#Decodes input and returns the result
|
|
def decode(self, input: str) -> str:
|
|
NotImplemented
|
|
#Makes sure all variables are empty
|
|
def reset(self):
|
|
NotImplemented
|
|
#Returns the version of the library
|
|
@classmethod
|
|
def getVersion(cls) -> str:
|
|
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
|