Encrypt()

RSACryptoServiceProvider::Encrypt(const ByteArrayPtr&, bool) method

Encrypts message. Not implemented.

ByteArrayPtr System::Security::Cryptography::RSACryptoServiceProvider::Encrypt(const ByteArrayPtr &rgb, bool use_oaep)

Arguments

ParameterTypeDescription
rgbconst ByteArrayPtr&Data to encrypt.
use_oaepboolTrue to use OAEP padding, false to use PKCS#1 v1.5 padding.

Return Value

Encrypted data array.

RSACryptoServiceProvider::Encrypt(ByteArrayPtr, SharedPtr<RSAEncryptionPadding>) method

Encrypts input data using the specified padding mode.

ByteArrayPtr System::Security::Cryptography::RSACryptoServiceProvider::Encrypt(ByteArrayPtr data, SharedPtr<RSAEncryptionPadding> padding) override

Arguments

ParameterTypeDescription
dataByteArrayPtrByte array to encrypt.
paddingSharedPtr<RSAEncryptionPadding>Padding mode.

Return Value

Encrypted data in byte array format.

See Also