This is my answer to problem set 6, Encryption.