Completed PasswordUtil Class for Encrypting Passwords