Encrypts a byte buffer with a byte encryption key.
public static Byte[] EncryptBytes(Byte[] inputBytes, Byte[] encryptionKey, CipherMode cipherMode)
Parameters
inputBytes
Bytes to convert
encryptionKey
The key bytes used to encode the data. Use a 24 byte key for best compatibility
cipherMode
Optional CipherMode used. Defaults to older ECB for backwards compatibility
Overloads:
public static Byte[] EncryptBytes(Byte[] inputBytes, string encryptionKey)
public static Byte[] EncryptBytes(Byte[] inputBytes, SecureString encryptionKey)
public static Byte[] EncryptBytes(string inputString, string encryptionKey)
See also:
Class Encryption© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic