RSA.EncryptValue(Byte[]) Método

Definição

Quando substituído em uma classe derivada, criptografa os dados de entrada usando a chave pública.When overridden in a derived class, encrypts the input data using the public key.

public:
 virtual cli::array <System::Byte> ^ EncryptValue(cli::array <System::Byte> ^ rgb);
public:
 abstract cli::array <System::Byte> ^ EncryptValue(cli::array <System::Byte> ^ rgb);
public virtual byte[] EncryptValue (byte[] rgb);
public abstract byte[] EncryptValue (byte[] rgb);
abstract member EncryptValue : byte[] -> byte[]
override this.EncryptValue : byte[] -> byte[]
abstract member EncryptValue : byte[] -> byte[]
Public Overridable Function EncryptValue (rgb As Byte()) As Byte()
Public MustOverride Function EncryptValue (rgb As Byte()) As Byte()

Parâmetros

rgb
Byte[]

O texto sem formatação a ser criptografado.The plain text to be encrypted.

Retornos

Byte[]

A criptografia resultante do parâmetro rgb como texto cifrado.The resulting encryption of the rgb parameter as cipher text.

Exceções

Não há suporte para essa chamada de método.This method call is not supported. Essa exceção é lançada a partir do .NET Framework 4,6.This exception is thrown starting with the .NET Framework 4.6.

Comentários

No .NET Framework 4.5.2 e em versões anteriores do .NET Framework, esse método era abstract .In the .NET Framework 4.5.2 and earlier versions of the .NET Framework, this method was abstract. No entanto, a única implementação por uma classe derivada, RSACryptoServiceProvider.DecryptValue também gerou uma NotSupportedException exceção.However, the only implementation by a derived class, RSACryptoServiceProvider.DecryptValue, also threw a NotSupportedException exception.

Aplica-se a

Confira também