Random bits of code written to help me solve cryptography homework sheets.