Encrypt()

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

Encrypts input data using the specified padding mode.

virtual ByteArrayPtr System::Security::Cryptography::RSA::Encrypt(ByteArrayPtr data, SharedPtr<RSAEncryptionPadding> padding)

Arguments

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

Return Value

Encrypted data in byte array format.

See Also