Function Forum_driver_smf2->_legacy_password_hash

Definitions

sources/forum/smf2.php

  • LEGACY: SMF hashing for SMF 1 and 1.1.
  • 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_raw string No No required parameter N/A N/A The value to hash
$key string No No required parameter N/A N/A Special key to hash with
$smf1_only boolean No No False N/A N/A Whether to just use original SMF hashing

Returns

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

Preview

Code (PHP)

/**
 * LEGACY: SMF hashing for SMF 1 and 1.1.
 *
 * @param  string $password_raw The value to hash
 * @param  string $key Special key to hash with
 * @param  boolean $smf1_only Whether to just use original SMF hashing
 * @return string The hashed data
 */

protected function _legacy_password_hash(string $password_raw, string $key, bool $smf1_only = false) : string