Cryptography for encrypted messages