Solar_Smtp_Adapter_CramMd5Auth::_hashHmacMd5()

protected string Solar_Smtp_Adapter_CramMd5Auth::_hashHmacMd5 ( string $password , string $challenge )

Prepare a hashed response to server challenge.

Parameters

  • (string) $password: The password to hash.

  • (string) $challenge: The server challenge.

Returns

  • (string) The hashed response to the challenge.

Description

Prepare a hashed response to server challenge.

Apparently hash_hmac() doesn't do the trick.

Adapted with minor naming changes from the Zend Framework class method Zend_Mail_Protocol_Smtp_Auth_Crammd5::_hmacMd5.

See Also



Local