Enum CipherMode
- Namespace
- System.Security.Cryptography
- Assembly
- nanoFramework.System.Security.Cryptography.dll
Specifies the block cipher mode to use for encryption.
public enum CipherMode
Fields
ECB = 2
The Electronic Codebook (ECB) mode encrypts each block individually. Any blocks of plain text that are identical and in the same message, or that are in a different message encrypted with the same key, will be transformed into identical cipher text blocks. Important: This mode is not recommended because it opens the door for multiple security exploits. If the plain text to be encrypted contains substantial repetition, it is feasible for the cipher text to be broken one block at a time. It is also possible to use block analysis to determine the encryption key. Also, an active adversary can substitute and exchange individual blocks without detection, which allows blocks to be saved and inserted into the stream at other points without detection.
None = 0
No cipher mode set.