CyberCX interview question

What's the difference between encrypting and hashing?