Uses of cryptography in early times