Encryption Types

Here are many ways you can encrypt a file to try to find the smallest RLE-compressed file. Each encryption type changes the differentials between bytes, hopefully to allow for more RLE-compression.

$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.

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

$02: Multiply, Feedback
For the first byte, multiply it by the parameter. For subsequent bytes, the result from the previous byte becomes the new value for the parameter.

$03: Complement
Similar to format $00 listed above ("Add, Feedback"), but every byte is 1-complemented (a logical NOT) before the addition occurs.