| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As ICertificate Dim algorithmUri As String Dim dataToEncrypt As ArraySegment(Of Byte) Dim value As ArraySegment(Of Byte) value = instance.Encrypt(algorithmUri, dataToEncrypt) | |
| C# | |
|---|---|
ArraySegment<byte> Encrypt( string algorithmUri, ArraySegment<byte> dataToEncrypt ) | |
Parameters
- algorithmUri
- dataToEncrypt
The input must be a multiple of the plaintext block size.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x