Five9 interview question

How to create an algorithm that encrypt a password.