Pergunta de entrevista da empresa Five9

How to create an algorithm that encrypt a password.