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

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

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

hash_file

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) Generate a hash value using the contents of a given file string hash_file ( string $algo, string $filename [, bool $raw_output = false ] ) Parameters: algo Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) filename URL describing location of file to be hashed; S

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

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.

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

calcul_hmac

(PECL spplus >= 1.0.0) Obtain a hmac key (needs 8 arguments) string calcul_hmac ( string $clent, string $siretcode, string $price, string $reference, string $validity, string $taxation, string $devise, string $language ) Returns: Returns TRUE on success or FALSE on failure. This function is currently not documented; only its argument list is available.

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.