I will explain you with an example. For login you need a username and a password. You almost never store plain text password. So you store a hash of a password. That way to verify password, you compare the hash of request password hash and user password hash instead of actually comparing plain text passwords.