Cryptography in login: initial implementation