Compartir a través de


GeneralFunctions.EncryptStringToBytes(String, Byte[], Byte[]) Method

Definition

Caution

This method has been deprecated.

Encrypts the given text using symmetric Rijndael algorithm.

public:
 static cli::array <System::Byte> ^ EncryptStringToBytes(System::String ^ plainText, cli::array <System::Byte> ^ Key, cli::array <System::Byte> ^ IV);
[System.Obsolete("This method has been deprecated.", true)]
public static byte[] EncryptStringToBytes (string plainText, byte[] Key, byte[] IV);
[<System.Obsolete("This method has been deprecated.", true)>]
static member EncryptStringToBytes : string * byte[] * byte[] -> byte[]
Public Shared Function EncryptStringToBytes (plainText As String, Key As Byte(), IV As Byte()) As Byte()

Parameters

plainText
String

Specifies the string to be encrypted

Key
Byte[]

Specifies the value of the key to be used for encryption

IV
Byte[]

Specifies the initialization vector to be used for encryption

Returns

Byte[]

Byte array represented encrypted text.

Attributes

Applies to