Cryptography course book examples worked out