crypto/algorithms/caesarcipher.py
def encryptString(self, unencryptedMessage):
        '''
        encryptString with the CaesarCipher encrypts the message by finding the orignal value of the character in the
        ascii table and then offsetting the ordinal value by a set ammount. It then converts the offset ordinal value
        back into whatever ascii character represents this new ordinal. This then represents the encrypted letter. Each
        letter has this process applied to them before the completely encryptedMessage is returned
        :param unencryptedMessage: String - the unencrypted message
        :return:Bytes[] - the CaesarCipher encrypted message as bytes
        '''
        encryptedMessage = ""
        for letter in unencryptedMessage:
            encryptedLetter = chr(ord(letter) + self.offset)
            encryptedMessage += encryptedLetter
        return encryptedMessage.encode()

        encryptString with the CaesarCipher encrypts the message by finding the orignal value of the character in the
        ascii table and then offsetting the ordinal value by a set ammount. It then converts the offset ordinal value
        back into whatever ascii character represents this new ordinal. This then represents the encrypted letter. Each
        letter has this process applied to them before the completely encryptedMessage is returned
        :param unencryptedMessage: String - the unencrypted message
        :return:Bytes[] - the CaesarCipher encrypted message as bytes
        
encryptString with the CaesarCipher encrypts the message by finding the orignal value of the character in the
ascii table and then offsetting the ordinal value by a set ammount. It then converts the offset ordinal value
back into whatever ascii character represents this new ordinal. This then represents the encrypted letter. Each
letter has this process applied to them before the completely encryptedMessage is returned
encryptString with the CaesarCipher encrypts the message by finding the orignal value of the character in the ascii table and then offsetting the ordinal value by a set ammount . It then converts the offset ordinal value back into whatever ascii character represents this new ordinal . This then represents the encrypted letter . Each letter has this process applied to them before the completely encryptedMessage is returned
def encryptString(self, unencryptedMessage):
        encryptedMessage = ""
        for letter in unencryptedMessage:
            encryptedLetter = chr(ord(letter) + self.offset)
            encryptedMessage += encryptedLetter
        return encryptedMessage.encode()
def encryptString ( self , unencryptedMessage ) : encryptedMessage = "" for letter in unencryptedMessage : encryptedLetter = chr ( ord ( letter ) + self . offset ) encryptedMessage += encryptedLetter return encryptedMessage . encode ( )
encryptString with the CaesarCipher encrypts the message by finding the orignal value of the character in the
ascii table and then offsetting the ordinal value by a set ammount.
encryptString with the CaesarCipher encrypts the message by finding the orignal value of the character in the ascii table and then offsetting the ordinal value by a set ammount .
'''
        encryptString with the CaesarCipher encrypts the message by finding the orignal value of the character in the
        ascii table and then offsetting the ordinal value by a set ammount. It then converts the offset ordinal value
        back into whatever ascii character represents this new ordinal. This then represents the encrypted letter. Each
        letter has this process applied to them before the completely encryptedMessage is returned
        :param unencryptedMessage: String - the unencrypted message
        :return:Bytes[] - the CaesarCipher encrypted message as bytes
        '''
Bytes[] - the CaesarCipher encrypted message as bytes
Bytes [] - the CaesarCipher encrypted message as bytes
self
unencryptedMessage
the unencrypted message
the unencrypted message