Question: what is the difference between a cipher and a hash?
Answer: A hash function destroys information in the general case. A cipher, on the other hand, takes a message of any length and produces an output of equal or greater length. It does not destroy information. A cipher output (called a ciphertext) can be decoded to produce the original message.