openssl_cipher_iv_length

(PHP 5 >= PHP 5.3.3, PHP 7) Gets the cipher iv length int openssl_cipher_iv_length ( string $method ) Gets the cipher initialization vector (iv) length. Parameters: method The cipher method, see openssl_get_cipher_methods() for a list of potential values. Returns: Returns the cipher length on success, or FALSE on failure.

mdecrypt_generic

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Decrypts data string mdecrypt_generic ( resource $td, string $data ) This function decrypts data. Note that the length of the returned string can in fact be longer than the unencrypted string, due to the padding of the data. Parameters: td An encryption descriptor returned by mcrypt_module_open() data E

mhash_keygen_s2k

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Generates a key string mhash_keygen_s2k ( int $hash, string $password, string $salt, int $bytes ) Generates a key according to the given hash, using an user provided password. This is the Salted S2K algorithm as specified in the OpenPGP document (ยป RFC 2440). Keep in mind that user supplied passwords are not really suitable to be used as keys in cryptographic algorithms, since users norm

mhash_get_hash_name

(PHP 4, PHP 5, PHP 7) Gets the name of the specified hash string mhash_get_hash_name ( int $hash ) Gets the name of the specified hash. Parameters: hash The hash ID. One of the MHASH_hashname constants. Returns: Returns the name of the hash or FALSE, if the hash does not exist. Examples:

mcrypt_module_open

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Opens the module of the algorithm and the mode to be used resource mcrypt_module_open ( string $algorithm, string $algorithm_directory, string $mode, string $mode_directory ) This function opens the module of the algorithm and the mode to be used. The name of the algorithm is specified in algorithm, e.g. "twofish" or is one of the MCRYPT_ciphername constants. The module is closed by calling

mcrypt_ofb

(PHP 4, PHP 5) Encrypts/decrypts data in OFB mode string mcrypt_ofb ( int $cipher, string $key, string $data, int $mode, string $iv ) string mcrypt_ofb ( string $cipher , string $key , string $data , int $mode [, string $iv ] ) The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or higher. The mode should be either MCRYPT_ENCRYPT or MCRYPT_DECRYPT.

mcrypt_module_is_block_algorithm

(PHP 4 >= 4.0.2, PHP 5, PHP 7) This function checks whether the specified algorithm is a block algorithm bool mcrypt_module_is_block_algorithm ( string $algorithm [, string $lib_dir ] ) This function returns TRUE if the specified algorithm is a block algorithm, or FALSE if it is a stream one. Parameters: algorithm The algorithm to check. lib_dir

mcrypt_module_get_algo_key_size

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns the maximum supported keysize of the opened mode int mcrypt_module_get_algo_key_size ( string $algorithm [, string $lib_dir ] ) Gets the maximum supported keysize of the opened mode. Parameters: algorithm The algorithm name. lib_dir This optional parameter can contain the location where the mode

mcrypt_module_self_test

(PHP 4 >= 4.0.2, PHP 5, PHP 7) This function runs a self test on the specified module bool mcrypt_module_self_test ( string $algorithm [, string $lib_dir ] ) This function runs the self test on the algorithm specified. Parameters: algorithm One of the MCRYPT_ciphername constants, or the name of the algorithm as string. lib_dir The opti

mcrypt_module_is_block_algorithm_mode

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns if the specified module is a block algorithm or not bool mcrypt_module_is_block_algorithm_mode ( string $mode [, string $lib_dir ] ) This function returns TRUE if the mode is for use with block algorithms, otherwise it returns FALSE. (e.g. FALSE for stream, and TRUE for cbc, cfb, ofb). Parameters: mode The mode to check.