A hash function can be used as a code for a password, along with modifying the resulting hash to be stored instead of the password itself, for security. Press space, any letter or number to enter something. Left-arrow is backspace.
Top string is input, middle string is my algorithm, and far bottom is @TheLogFather 's hash (first one). Credit to @TheLogFather.