Code for CS255 - cryptography