Examples of Encryption

This page will show some examples of encryption, and its effects. All math on this page is done in hexadecimal.

$00: Add, Feedback
For the first byte, add the parameter. For subsequent bytes, the result from the previous byte becomes the new value for the parameter.

Example: Given the string 06 00 84 2F 5A 00, and the parameter byte 77: The resulting string is 7D 7D 01 30 8A 8A.
 * For the first byte, 06 + 77 = 7D. The parameter for the next byte will then become 7D.
 * 00 + 7D = 7D
 * 84 + 7D = 01
 * 2F + 01 = 30
 * 5A + 30 = 8A
 * 00 + 8A = 8A

$01: Add, Multiple
With each byte, the parameter increases by its original value, mod 256.

Notes: Example: Say that the parameter byte is 03. Then, the parameter will increase in this pattern:  03, 06, 09, 0C, 0F, etc. up to FF, then 02, 05, 08, etc.
 * If the parameter is 00, then it will stay 00 all throughout the process, therefore leaving the file unchanged.
 * If the parameter is 80, then it will alternate between 80 and 00.
 * If the parameter is odd, it will cycle through all 256 values.

Given the string 96 93 90 6D 6A 67, and the parameter byte 03: The resulting string is 99 99 99 79 79 79.
 * 96 + 03 = 99
 * 93 + 06 = 99
 * 90 + 09 = 99
 * 6D + 0C = 79
 * 6A + 0F = 79
 * 67 + 12 = 79