To prevent the problem of mixing user name and password and host name and user name we add length of the hostname and user name to the hash.