Launch Maple.
Make sure you start in an execution group. If necessary, Insert > Execution group > After cursor
Select Text mode (near upper left).
Enter the Maple code given in Cryptological Mathematics by Lewand (MAA, Washington, D.C., 2000), pp. 166-169. It's also here in html.