crypto/algorithms/pureaescipher.py
def encryptString(self, unencryptedMessage):
        ''' 
        Process to encrypt string:
        Generate a random 16 byte IV
        Encrypt unencryptedMessage using mode and key defined in init
        Return plaintext IV and encrypted cipher
        '''
        iv = self._generateRandomKey(16)

        ciph = self.moo.encrypt(unencryptedMessage, 
                                     self.mode, 
                                     self.cypherkey, 
                                     self.keylen, 
                                     iv)

        return iv + bytes(ciph)
 
        Process to encrypt string:
        Generate a random 16 byte IV
        Encrypt unencryptedMessage using mode and key defined in init
        Return plaintext IV and encrypted cipher
        
Process to encrypt string:
Generate a random 16 byte IV
Encrypt unencryptedMessage using mode and key defined in init
Return plaintext IV and encrypted cipher
Process to encrypt string : Generate a random 16 byte IV Encrypt unencryptedMessage using mode and key defined in init Return plaintext IV and encrypted cipher
def encryptString(self, unencryptedMessage):
        iv = self._generateRandomKey(16)
        ciph = self.moo.encrypt(unencryptedMessage, 
                                     self.mode, 
                                     self.cypherkey, 
                                     self.keylen, 
                                     iv)
        return iv + bytes(ciph)
def encryptString ( self , unencryptedMessage ) : iv = self . _generateRandomKey ( 16 ) ciph = self . moo . encrypt ( unencryptedMessage , self . mode , self . cypherkey , self . keylen , iv ) return iv + bytes ( ciph )
Process to encrypt string:
Generate a random 16 byte IV
Encrypt unencryptedMessage using mode and key defined in init
Return plaintext IV and encrypted cipher
Process to encrypt string : Generate a random 16 byte IV Encrypt unencryptedMessage using mode and key defined in init Return plaintext IV and encrypted cipher
''' 
        Process to encrypt string:
        Generate a random 16 byte IV
        Encrypt unencryptedMessage using mode and key defined in init
        Return plaintext IV and encrypted cipher
        '''
self
unencryptedMessage