System::Security::Cryptography::RSACryptoServiceProvider::Encrypt method
Contents
[
Hide
]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
Parameter | Type | Description |
---|---|---|
data | ByteArrayPtr | Byte array to encrypt. |
padding | SharedPtr<RSAEncryptionPadding> | Padding mode. |
ReturnValue
Encrypted data in byte array format.
See Also
- Typedef ByteArrayPtr
- Typedef SharedPtr
- Class RSAEncryptionPadding
- Class RSACryptoServiceProvider
- Namespace System::Security::Cryptography
- Library Aspose.PDF for C++
RSACryptoServiceProvider::Encrypt(const ByteArrayPtr&, bool) method
Encrypts message. Not implemented.
ByteArrayPtr System::Security::Cryptography::RSACryptoServiceProvider::Encrypt(const ByteArrayPtr &rgb, bool use_oaep)
Parameter | Type | Description |
---|---|---|
rgb | const ByteArrayPtr& | Data to encrypt. |
use_oaep | bool | True to use OAEP padding, false to use PKCS#1 v1.5 padding. |
ReturnValue
Encrypted data array.
See Also
- Typedef ByteArrayPtr
- Class RSACryptoServiceProvider
- Namespace System::Security::Cryptography
- Library Aspose.PDF for C++