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:

mhash_get_block_size

(PHP 4, PHP 5, PHP 7) Gets the block size of the specified hash int mhash_get_block_size ( int $hash ) Gets the size of a block of the specified hash. Parameters: hash The hash ID. One of the MHASH_hashname constants. Returns: Returns the size in bytes or FALSE, if the hash does not exist. Example

mhash_count

(PHP 4, PHP 5, PHP 7) Gets the highest available hash ID int mhash_count ( void ) Gets the highest available hash ID. Returns: Returns the highest available hash ID. Hashes are numbered from 0 to this hash ID. Examples: Traversing all hashes <?php $nr = mhash_count(); for ($i = 0; $i <= $nr; $i++) {     echo sprin

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

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_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_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_module_is_block_mode

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns if the specified mode outputs blocks or not bool mcrypt_module_is_block_mode ( string $mode [, string $lib_dir ] ) This function returns TRUE if the mode outputs blocks of bytes or FALSE if it outputs just bytes. (e.g. TRUE for cbc and ecb, and FALSE for cfb and stream). Parameters: mode One of the MCRYPT_MODE_modename constants, o

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_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.