phase 1 of assignment for cryptography class.