RTX Interview Question

What is the difference between encryption and hashing?