crypto/algorithms/pureaescipher.py
def _generateRandomKey(self, keysize):
        '''
        Generates a key from random data of length `keysize`
        The returned key is a string of bytes
        '''
        if keysize not in (16, 24, 32):
            print('ERROR: Invalid keysize, %s. Should be one of (16, 24, 32).')
        return os.urandom(keysize)

        Generates a key from random data of length `keysize`
        The returned key is a string of bytes
        
Generates a key from random data of length `keysize`
The returned key is a string of bytes
Generates a key from random data of length ` keysize ` The returned key is a string of bytes
def _generateRandomKey(self, keysize):
        if keysize not in (16, 24, 32):
            print('ERROR: Invalid keysize, %s. Should be one of (16, 24, 32).')
        return os.urandom(keysize)
def _generateRandomKey ( self , keysize ) : if keysize not in ( 16 , 24 , 32 ) : print ( 'ERROR: Invalid keysize, %s. Should be one of (16, 24, 32).' ) return os . urandom ( keysize )
Generates a key from random data of length `keysize`
The returned key is a string of bytes
Generates a key from random data of length ` keysize ` The returned key is a string of bytes
'''
        Generates a key from random data of length `keysize`
        The returned key is a string of bytes
        '''
self
keysize