Cvent interview question

Encryption vs hashing. API integrals, simple programming question