The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
RSA::Encrypt Method (array<Byte>^, RSAEncryptionPadding^)
When overridden in a derived class, encrypts the input data using the specified padding mode.
Assembly: mscorlib (in mscorlib.dll)
public: virtual array<unsigned char>^ Encrypt( array<unsigned char>^ data, RSAEncryptionPadding^ padding )
Parameters
- data
-
Type:
array<System::Byte>^
The data to encrypt.
- padding
-
Type:
System.Security.Cryptography::RSAEncryptionPadding^
The padding mode.
| Exception | Condition |
|---|---|
| NotImplementedException | A derived class must override this method. |
.NET Framework
Available since 4.6
Available since 4.6
Show: