Hashing vs encryption?

Hashing is one-way and fixed-length, used to verify integrity and store passwords. Encryption is reversible with a key, used for confidentiality. Store passwords with a slow salted hash (bcrypt, scrypt, Argon2), never encrypted.