Exercise in implementing cryptographic functions.