Code to accompany the book, An Introduction to Mathematical Cryptography