Pregunta de entrevista de Paysafe

How are hashing and encoding similar/different?