Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: byte[] AesEncrypt(byte[], byte[])

  • Declared in: RT.Util.Ut

Declaration

public static byte[] AesEncrypt(
    byte[] plain,
    byte[] key
)

Summary

Encrypts bytes using AES in CBC mode.

Parameters

byte[]plain Plaintext to encrypt.
byte[]key An AES key to use for encryption. Must be exactly 32 bytes long.

Returns

The encrypted data.