SecurityKeyElement.EncryptKey(String, Byte[]) Método

Definição

Criptografa a chave especificada usando o algoritmo especificado.Encrypts the specified key by using the specified algorithm.

public:
 override cli::array <System::Byte> ^ EncryptKey(System::String ^ algorithm, cli::array <System::Byte> ^ keyData);
public override byte[] EncryptKey (string algorithm, byte[] keyData);
override this.EncryptKey : string * byte[] -> byte[]
Public Overrides Function EncryptKey (algorithm As String, keyData As Byte()) As Byte()

Parâmetros

algorithm
String

O algoritmo a ser usado para descriptografar a chave.The algorithm to use to decrypt the key.

keyData
Byte[]

Uma matriz que contém a chave a criptografar.An array that contains the key to encrypt.

Retornos

Byte[]

Uma matriz que contém a chave criptografada.An array that contains the encrypted key.

Aplica-se a