Intro to cryptography homework 3