hashing algorithm on signup and login