I have read the complete thread and understand that you can create with this function an encrypted or hashed version of a given password and or username.

What I don't understand so far is how I can use this in connection with the server? How do I check the password provided (user input) and saved (database)?