Cryptography exercises