Hashing the user-input keys