md5_hmac

Description

Password-encryption function used in YaBB SE and SMF 1.0.x. Included in later versions for compatibility.

Syntax

string md5_hmac (string $data, string $key)



Parameter $data

Expected type: String
Description: The data to encrypt (usually a password)



Parameter $key

Expected type: String
Description: The key to use for the encryption



Return value

Expected type: String
Description: The encrypted string


Notes

  • This is an extremely complex function
  • This is a modified version of PHP's md5 function
  • See Wikipedia for lots of technical details on MD5 and HMAC
  • Moved to LogInOut.php in 1.1 (which uses sha1 instead)
Advertisement: