We want to encrypt messages so that nothing meaningful can be done if a message is intercepted.
RSA
Passwords should be hashed and salted. Cryptographic salts are used to make sure that two users that have the exact same password from having the exact same hash. The point of Hashcode or hashing, is that it is easy to compute but very difficult to reverse.