When Billy Bob down the hall wants to transfer some files to a computer, he's required to identify himself by providing a username and password. The system program that checks his authorization encrypts the password he enters, and then compares the result to the encrypted password (the hash) contained in the password file; if the two match, he's given access.