Question d’entretien chez 6sense

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