public static function getHMACMD5HashString($password, $data) {
    if (function_exists('hash_hmac')) {
      return hash_hmac('MD5', $data, $password);
    }
    else {
      return self::hmacFallbackMD5($data, $password);
    }
  }
public static function getHMACMD5HashString($password, $data) {
    if (function_exists('hash_hmac')) {
      return hash_hmac('MD5', $data, $password);
    }
    else {
      return self::hmacFallbackMD5($data, $password);
    }
  }
public static function getHMACMD5HashString ( $ password , $ data ) { if ( function_exists ( 'hash_hmac' ) ) { return hash_hmac ( 'MD5' , $ data , $ password ) ; } else { return self :: hmacFallbackMD5 ( $ data , $ password ) ; } }
Returns a HMAC Hash with md5 encryption by using a secret and a string

@param String password
@param String data to hash
@return String generated hash
Returns a HMAC Hash with md5 encryption by using a secret and a string