Back to ChainedHandler class

Method hashPassword

public void
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
  • void
Since
  • 4.0.0
-
  • \RuntimeException

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  void
 *
 * @since   4.0.0
 * @throws  \RuntimeException
 */
public function hashPassword($plaintext, array $options = [])
{
    throw new \RuntimeException('The chained password handler cannot be used to hash a password');
}