| Documentation |
|---|
| Related products |
|---|
| USB-I2C/SPI/GPIO Adapter - U2C-12 |
| USB-IO Interface Adapter - GPIO-12 |
The encoder application allows to encript or decript HEX files for microcontroller. The encription is implemented by using XTEA algorithm. You can also browse the recent source code online at "encoder source code".
The encoder application supports the following commands (Table 8.1, “Encoder commands”):
Table 8.1. Encoder commands
| Short Command | Full Command | Parameter Value | Description |
|---|---|---|---|
| -h | -help | Displays the supported commands and options description. | |
| -e | -encode | PASSWORD | Encode the input file with PASSWORD and save it to output file. PASSWORD is used as an encryption key. PASSWORD has to be provided as string of two hex digits per byte (like 01202040ac). |
| -d | -decode | PASSWORD | Decode the input file with PASSWORD and save it to output file. PASSWORD is used as an encryption key. PASSWORD has to be provided as string of two hex digits per byte (like 01202040ac). |
| -c | -convert | Convert the file from one format to another. |
The encoder application supports the following options(Table 8.2, “Encoder options”):
Table 8.2. Encoder options
| Short Option | Full Option | Parameter Value | Description |
|---|---|---|---|
| -ix | -input_hex | FILENAME | Input file in Intel Hex Format. |
| -ib | -input_bin | FILENAME | Input file in Binary Format. |
| -id | -input_data | DATA | Immediate mode - actual byte(s) specified in the command line as string of two hex digits per byte (like 01202040ac). |
| -ox | -output_hex | FILENAME | Output file in Intel Hex Format. |
| -ob | -output_bin | FILENAME | Output file in Binary Format. |
encoder -e 0102030405060708090a0b0c0d0e0f10 -ix example.hex -ox example_encrypted.hex
To decrypt "example_encrypted.hex" use following command line:
encoder -d 0102030405060708090a0b0c0d0e0f10 -ix example_encrypted.hex -ox example_decrypted.hex