mcrypt_encrypt

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Encrypts plaintext with given parameters string mcrypt_encrypt ( string $cipher, string $key, string $data, string $mode [, string $iv ] ) Encrypts the data and returns it. Parameters: cipher One of the MCRYPT_ciphername constants, or the name of the algorithm as string. key The key with which the data wi

mcrypt_enc_get_algorithms_name

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns the name of the opened algorithm string mcrypt_enc_get_algorithms_name ( resource $td ) This function returns the name of the algorithm. Parameters: td The encryption descriptor. Returns: Returns the name of the opened algorithm as a string. Examples:

mcrypt_decrypt

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Decrypts crypttext with given parameters string mcrypt_decrypt ( string $cipher, string $key, string $data, string $mode [, string $iv ] ) Decrypts the data and returns the unencrypted data. Parameters: cipher One of the MCRYPT_ciphername constants, or the name of the algorithm as string. key The key with

mcrypt_enc_get_iv_size

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns the size of the IV of the opened algorithm int mcrypt_enc_get_iv_size ( resource $td ) This function returns the size of the IV of the algorithm specified by the encryption descriptor in bytes. An IV is used in cbc, cfb and ofb modes, and in some algorithms in stream mode. Parameters: td The encryption descriptor.

mcrypt_enc_get_block_size

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns the blocksize of the opened algorithm int mcrypt_enc_get_block_size ( resource $td ) Gets the blocksize of the opened algorithm. Parameters: td The encryption descriptor. Returns: Returns the block size of the specified algorithm in bytes.

mcrypt_enc_get_key_size

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns the maximum supported keysize of the opened mode int mcrypt_enc_get_key_size ( resource $td ) Gets the maximum supported key size of the algorithm in bytes. Parameters: td The encryption descriptor. Returns: Returns the maximum supported key size of the algorithm in bytes.

mcrypt_ecb

(PHP 4, PHP 5) Deprecated: Encrypts/decrypts data in ECB mode string mcrypt_ecb ( int $cipher, string $key, string $data, int $mode ) string mcrypt_ecb ( 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_create_iv

(PHP 4, PHP 5, PHP 7) Creates an initialization vector (IV) from a random source string mcrypt_create_iv ( int $size [, int $source = MCRYPT_DEV_URANDOM ] ) Creates an initialization vector (IV) from a random source. The IV is only meant to give an alternative seed to the encryption routines. This IV does not need to be secret at all, though it can be desirable. You even can send it along with your ciphertext without losi

mcrypt_cfb

(PHP 4, PHP 5) Encrypts/decrypts data in CFB mode string mcrypt_cfb ( int $cipher, string $key, string $data, int $mode, string $iv ) string mcrypt_cfb ( 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.

hash_update

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Pump data into an active hashing context bool hash_update ( resource $context, string $data ) Parameters: context Hashing context returned by hash_init(). data Message to be included in the hash digest. Returns: Returns TRUE.