A cipher is an algorithm used to encrypt and decrypt data, while a hash is a one-way algorithm used to generate a unique fixed-length output from a given input.
Cipher example: AES (Advanced Encryption Standard) is a type of cipher used to encrypt and decrypt data.
Hash example: SHA-256 (Secure Hash Algorithm) is a type of hash used to generate a unique fixed-length output from a given input.