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

hash_copy

(PHP 5 >= 5.3.0, PHP 7) Copy hashing context resource hash_copy ( resource $context ) Parameters: context Hashing context returned by hash_init(). Returns: Returns a copy of Hashing Context resource. Examples: hash_copy() example <?php $context = hash_init("md5"); ha

hash_algos

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Return a list of registered hashing algorithms array hash_algos ( void ) Returns: Returns a numerically indexed array containing the list of supported hashing algorithms. Changelog: 5.6.0 Support for gost-crypto was added. This implements the GOST hash function using the CryptoPro S-box tables as

random_int

(PHP 7) Generates cryptographically secure pseudo-random integers int random_int ( int $min, int $max ) Generates cryptographic random integers that are suitable for use where unbiased results are critical, such as when shuffling a deck of cards for a poker game. The sources of randomness used for this function are as follows: On Windows, » CryptGenRandom() will always be used. On Linux, the » getrandom(2) syscall w

random_bytes

(PHP 7) Generates cryptographically secure pseudo-random bytes string random_bytes ( int $length ) Generates an arbitrary length string of cryptographic random bytes that are suitable for cryptographic use, such as when generating salts, keys or initialization vectors. The sources of randomness used for this function are as follows: On Windows, » CryptGenRandom() will always be used. On Linux, the » getrandom(2) sys

crack_opendict

(PECL crack >= 0.1) Opens a new CrackLib dictionary resource crack_opendict ( string $dictionary ) crack_opendict() opens the specified CrackLib dictionary for use with crack_check(). Note: Only one dictionary may be open at a time. Parameters: dictionary The path to the Cracklib dictionary. Returns: Returns a dictionary resource identifi

crack_getlastmessage

(PECL crack >= 0.1) Returns the message from the last obscure check string crack_getlastmessage ( void ) crack_getlastmessage() returns the message from the last obscure check. Returns: The message from the last obscure check or FALSE if there was no obscure checks made so far. The returned message is one of: it's WAY too short it is too short it does not contain enough DIFFERENT c

crack_closedict

(PECL crack >= 0.1) Closes an open CrackLib dictionary bool crack_closedict ([ resource $dictionary ] ) crack_closedict() closes the specified dictionary identifier. Parameters: dictionary The dictionary to close. If not specified, the current dictionary is closed. Returns: Returns TRUE on success or FALSE on failure.

crack_check

(PECL crack >= 0.1) Performs an obscure check with the given password bool crack_check ( resource $dictionary, string $password ) bool crack_check ( string $password , string $username = "" , string $gecos = "" , resource $dictionary = NULL ) Performs an obscure check with the given password on the specified dictionary. The alternative signature also takes into account the username and the GECOS information.

signeurlpaiement

(PECL spplus >= 1.0.0) Obtain the payment url (needs 2 arguments) string nthmac ( string $clent, string $data ) Returns: Returns TRUE on success or FALSE on failure. This function is currently not documented; only its argument list is available.