Microsoft interview question

What is the difference between Hashing/Encryption and Encoding?