the homework of Cryptography and Network Security Principles and Practice. Programming Problems 8.22.