Five9 Interview Question

How to create an algorithm that encrypt a password.