The Mode property defines how different input (plaintext)
blocks of data are 'chained' to each other during
encryption. The default value, ECB,
does not chain data in any way - blocks are encrypted
individually, and the same input blocks result in equal
In CBC, CFB and OFB modes, each
block is XOR-ed with the value of InitVector at
some point, and InitVector is changed on each iteration.
This way resulting data is different even if the input blocks
are the same. The most common mode is CBC.
You must specify the same Mode when you try to Decrypt the