Function Forum_driver_mybb->salt_password
Definitions
sources/forum/mybb.php
- Salts a password based on a supplied salt.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$password | string | No | No | required parameter | N/A | N/A | The md5()'ed password |
$salt | string | No | No | required parameter | N/A | N/A | The salt |
Returns
- The password hash
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Salts a password based on a supplied salt.
*
* @param string $password The md5()'ed password
* @param string $salt The salt
* @return string The password hash
*/
protected function salt_password(string $password, string $salt) : string
* Salts a password based on a supplied salt.
*
* @param string $password The md5()'ed password
* @param string $salt The salt
* @return string The password hash
*/
protected function salt_password(string $password, string $salt) : string