## RSA::EncryptValue method


Encrypts value using private key.

```cpp
virtual ByteArrayPtr System::Security::Cryptography::RSA::EncryptValue(ByteArrayPtr rgb)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rgb | ByteArrayPtr | [Byte](../../../system/byte/) array to encrypt. |

### ReturnValue

Encrypted data in byte array format.

## See Also

* Typedef [ByteArrayPtr](../../../system/bytearrayptr/)
* Class [RSA](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.Font for C++](../../../)
