Function Forum_driver_smf2->cookie_hash_salt

Definitions

sources/forum/smf2.php

  • Hashes password with salt and authentication secret for use in the SMF 2 cookie.
  • 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 password
$salt string No No required parameter N/A N/A The salt

Returns

  • The hashed password
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Hashes password with salt and authentication secret for use in the SMF 2 cookie.
 *
 * @param  string $password The password
 * @param  string $salt The salt
 * @return string The hashed password
 */

protected function cookie_hash_salt(string $password, string $salt) : string