Wave that flag. Then input a message, and it'll be translated into the corresponding integers.
Used an hour or two of tedious work and troubleshooting. This script may seem boring, but it's crucial for automated cryptography. =)