def generate_aes_iv(key):
 return md5((key + md5(key).hexdigest())).hexdigest()[:AES.block_size]

def generate_aes_iv ( key ) : return md5 ( ( key + md5 ( key ) . hexdigest ( ) ) ) . hexdigest ( ) [ : AES . block_size ]
return the initialization vector software secure expects for a given aes key .