Tech Mahindra interview question

what is difference between Hashing and Encryption?