Add key validation and error alert.
Add hex output.
Rename variable
Check for invalid hex in encoded_string.
Rename from encode to XOR.  Rename decoded to output.
Zero pad hex char if needed.