mirror of
https://bitbucket.org/Mattrixwv/pypherstream.git
synced 2025-12-06 18:43:58 -05:00
54 lines
1.8 KiB
Python
54 lines
1.8 KiB
Python
#PypherStream/Caesar.py
|
|
#Matthew Ellison
|
|
# Created: 03-30-19
|
|
#Modified: 03-30-19
|
|
#This file contains the Caesar class for the PypherStream Project.
|
|
#This class takes input and uses a Caesar Cipher to encode or decode a message.
|
|
#This is a Python port of the CipherStream program found at https://bitbucket.org/Mattrixwv/CipherStream
|
|
|
|
|
|
class Caesar:
|
|
__version = "1.0" #The current version number for the library
|
|
def __init__(self):
|
|
self.__inputString = "" #The string that needs encoded/decoded
|
|
self.__outputString = "" #The encoded/decoded string
|
|
self.__shift = 0 #The amount that you need to shift each letter
|
|
#Sets shift and makes sure it is within the propper bounds
|
|
def __setShift(self, shiftAmount: int):
|
|
NotImplemented
|
|
#Sets the input string
|
|
def __setInputString(self, inputString: str):
|
|
NotImplemented
|
|
#Encodes the inputString and stores the result in outputString
|
|
def __encode(self) -> str:
|
|
NotImplemented
|
|
#Decodes the inputString and stores the result in outputString
|
|
def __decode(self) -> str:
|
|
NotImplemented
|
|
#Returns the inputString
|
|
def getInputString(self) -> str:
|
|
NotImplemented
|
|
#Returns the shift value
|
|
def getShift(self) -> int:
|
|
NotImplemented
|
|
#Returns the outputString
|
|
def getOutputString(self) -> str:
|
|
NotImplemented
|
|
#Sets the shift and inputString and encodes the message
|
|
def encode(self, shiftAmount: int, input: str) -> str:
|
|
NotImplemented
|
|
#Sets the shift and inputString and decodes the message
|
|
def decode(self, shiftAmount: int, input: str) -> str:
|
|
NotImplemented
|
|
#Makes sure all of the 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
|