[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 457 lines (16 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
incrementCounter($ctr, $inc) X-Ref |
Adds an integer to a block-sized counter. param: string $ctr param: int $inc return: string |
secureRandom($octets) X-Ref |
Returns a random byte string of the specified length. param: int $octets return: string |
HKDF($hash, $ikm, $length, $info = '', $salt = null) X-Ref |
Computes the HKDF key derivation function specified in http://tools.ietf.org/html/rfc5869. param: string $hash Hash Function param: string $ikm Initial Keying Material param: int $length How many bytes? param: string $info What sort of key are we deriving? param: string $salt return: string |
hashEquals($expected, $given) X-Ref |
Checks if two equal-length strings are the same without leaking information through side channels. param: string $expected param: string $given return: bool |
ensureConstantExists($name) X-Ref |
Throws an exception if the constant doesn't exist. param: string $name return: void |
ensureFunctionExists($name) X-Ref |
Throws an exception if the function doesn't exist. param: string $name return: void |
ensureTrue($condition, $message = '') X-Ref |
Throws an exception if the condition is false. param: bool $condition param: string $message return: void |
ourStrlen($str) X-Ref |
Computes the length of a string in bytes. param: string $str return: int |
ourSubstr($str, $start, $length = null) X-Ref |
Behaves roughly like the function substr() in PHP 7 does. param: string $str param: int $start param: int $length return: string|bool |
pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output = false) X-Ref |
Computes the PBKDF2 password-based key derivation function. The PBKDF2 function is defined in RFC 2898. Test vectors can be found in RFC 6070. This implementation of PBKDF2 was originally created by Taylor Hornby, with improvements from http://www.variations-of-shadow.com/. param: string $algorithm The hash algorithm to use. Recommended: SHA256 param: string $password The password. param: string $salt A salt that is unique to the password. param: int $count Iteration count. Higher is better, but slower. Recommended: At least 1000. param: int $key_length The length of the derived key in bytes. param: bool $raw_output If true, the key is returned in raw binary format. Hex encoded otherwise. return: string A $key_length-byte key derived from the password and salt. |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |