Solution for Applied Cryptography HW 2-5