Pregunta de entrevista de 6sense

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