Code for course cryptography