Pergunta de entrevista da empresa Fortinet

What are the differences between encoding, hashing, and encryption? How does the TLS handshake work? What is injection and how to prevent it? What is cross site scripting and how to prevent it?