Learning exercises for cryptography