Crypto.EncryptBuffer(Byte[], Boolean) Method
Namespace: QuickAdmin.UtilsAssembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.2.4
public static byte[] EncryptBuffer(
byte[] plainBuffer,
bool acceptNullBuffer = false
)
- plainBuffer byte[]
- 要加密的字节数组。
- acceptNullBuffer bool (Optional)
- 指示是否允许 plainBuffer 为 null 或 空数组。
byte[]
加密后的字节数组。
当
acceptNullBuffer 为
true 时:若
plainBuffer 为
null,返回
null;
若
plainBuffer 为空数组,返回一个空数组(长度为零的字节数组)。