System::Security::Cryptography::RSACryptoServiceProvider::Encrypt method

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
ParameterTypeDescription
dataByteArrayPtrByte array to encrypt.
paddingSharedPtr<RSAEncryptionPadding>Padding mode.

ReturnValue

Encrypted data in byte array format.

See Also

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

Encrypts message. Not implemented.

ByteArrayPtr System::Security::Cryptography::RSACryptoServiceProvider::Encrypt(const ByteArrayPtr &rgb, bool use_oaep)
ParameterTypeDescription
rgbconst ByteArrayPtr&Data to encrypt.
use_oaepboolTrue to use OAEP padding, false to use PKCS#1 v1.5 padding.

ReturnValue

Encrypted data array.

See Also