Back to PHPassHandler class

Method hashPassword

public string
hashPassword
(mixed $plaintext, array $options = [])
Generate a hash for a plaintext password
Parameters
  • string $pla intext The plaintext password to validate
  • array $options Options for the hashing operation
Returns
  • string
Since
  • 4.0.0
Class: PHPassHandler
Project: Joomla

Method hashPassword - Source code

/**
 * Generate a hash for a plaintext password
 *
 * @param   string  $plaintext  The plaintext password to validate
 * @param   array   $options    Options for the hashing operation
 *
 * @return  string
 *
 * @since   4.0.0
 */
public function hashPassword($plaintext, array $options = [])
{
    return $this->getPasswordHash()->HashPassword($plaintext);
}