public static function getHMACMD5HashString($password, $data) {
    if (function_exists('hash_hmac')) {
      return hash_hmac('MD5', $data, $password);
    }
    else {
      return self::hmacFallbackMD5($data, $password);
    }
  }