Generate hash for single sign on (remote authnetication) - brainpickin.com