Paysafe interview question

How are hashing and encoding similar/different?