Pergunta de entrevista da empresa 6sense

What is difference between encryption, encoding, and hashing? Explain cross-site scripting attack?