Add tests for -a option.

Adjust the prompt text for easier testing.  In addition, print the mask
as a hex string, not a raw series of bytes, in human-readable mode.
Continue printing the mask as a URL-encoded string in machine-readable
mode.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>