hash_update_stream

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Pump data into an active hashing context from an open stream int hash_update_stream ( resource $context, resource $handle [, int $length = -1 ] ) Parameters: context Hashing context returned by hash_init(). handle Open file handle as returned by any stream creation function.

hash_update_file

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Pump data into an active hashing context from a file bool hash_update_file ( resource $hcontext, string $filename [, resource $scontext = NULL ] ) Parameters: hcontext Hashing context returned by hash_init(). filename URL describing location of file to be hashed; Supports fopen wrappers.

hash

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Generate a hash value (message digest) string hash ( string $algo, string $data [, bool $raw_output = false ] ) Parameters: algo Name of selected hashing algorithm (e.g. "md5", "sha256", "haval160,4", etc..) data Message to be hashed. raw_output When set

mcrypt_cbc

(PHP 4, PHP 5) Encrypts/decrypts data in CBC mode string mcrypt_cbc ( int $cipher, string $key, string $data, int $mode [, string $iv ] ) string mcrypt_cbc ( 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_final

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Finalize an incremental hash and return resulting digest string hash_final ( resource $context [, bool $raw_output = false ] ) Parameters: context Hashing context returned by hash_init(). raw_output When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.

hash_hmac_file

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Generate a keyed hash value using the HMAC method and the contents of a given file string hash_hmac_file ( string $algo, string $filename, string $key [, bool $raw_output = false ] ) Parameters: algo Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) See hash_algos() for a list of supported algorit

hash_hmac

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Generate a keyed hash value using the HMAC method string hash_hmac ( string $algo, string $data, string $key [, bool $raw_output = false ] ) Parameters: algo Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) See hash_algos() for a list of supported algorithms. data

hash_pbkdf2

(PHP 5 >= 5.5.0, PHP 7) Generate a PBKDF2 key derivation of a supplied password string hash_pbkdf2 ( string $algo, string $password, string $salt, int $iterations [, int $length = 0 [, bool $raw_output = false ]] ) Parameters: algo Name of selected hashing algorithm (i.e. md5, sha256, haval160,4, etc..) See hash_algos() for a list of supported algorithms.

hash_init

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Initialize an incremental hashing context resource hash_init ( string $algo [, int $options = 0 [, string $key = NULL ]] ) Parameters: algo Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..). For a list of supported algorithms see hash_algos(). options Optional

hash_equals

(PHP 5 >= 5.6.0, PHP 7) Timing attack safe string comparison bool hash_equals ( string $known_string, string $user_string ) Compares two strings using the same time whether they're equal or not. This function should be used to mitigate timing attacks; for instance, when testing crypt() password hashes. Parameters: known_string The string of known length to compare ag