public static function _genRijndael256IV ($cypher = FALSE)
	{
		
		// If a module has not been passed
		
		if (!$cypher)
		{
			
			// Open the cypher
			
			$cypher		= mcrypt_module_open ('rijndael-256', '', 'ofb', '');
			
		}
		
		// Create the IV
		
		$iv	= mcrypt_create_iv (mcrypt_enc_get_iv_size ($cypher), MCRYPT_RAND);
		
		// Close Module
		
		mcrypt_module_close ($cypher);
		
		// Return IV
		
		return $iv;
		
	}
public static function _genRijndael256IV ($cypher = FALSE)
	{
		
		// If a module has not been passed
		
		if (!$cypher)
		{
			
			// Open the cypher
			
			$cypher		= mcrypt_module_open ('rijndael-256', '', 'ofb', '');
			
		}
		
		// Create the IV
		
		$iv	= mcrypt_create_iv (mcrypt_enc_get_iv_size ($cypher), MCRYPT_RAND);
		
		// Close Module
		
		mcrypt_module_close ($cypher);
		
		// Return IV
		
		return $iv;
		
	}
public static function _genRijndael256IV ( $ cypher = FALSE ) { // If a module has not been passed if ( ! $ cypher ) { // Open the cypher $ cypher = mcrypt_module_open ( 'rijndael-256' , '' , 'ofb' , '' ) ; } // Create the IV $ iv = mcrypt_create_iv ( mcrypt_enc_get_iv_size ( $ cypher ) , MCRYPT_RAND ) ; // Close Module mcrypt_module_close ( $ cypher ) ; // Return IV return $ iv ; }
Generate a rijndael 256 initialisation vector
@param resource $cypher Encryption Resource
@return string
Generate a rijndael 256 initialisation vector