Cvent Interview Question

Encryption vs hashing. API integrals, simple programming question