EasyUA Reference
Encrypt(ArraySegment<Byte>,X509Certificate2,Boolean,ArraySegment<Byte>) Method
See Also  Send Feedback
Opc.Ua.Core.Net4 Assembly > Opc.Ua Namespace > RsaUtils Class > Encrypt Method : Encrypt(ArraySegment<Byte>,X509Certificate2,Boolean,ArraySegment<Byte>) Method

dataToEncrypt
encryptingCertificate
useOaep
outputBuffer

Glossary Item Box

Encrypts the data using RSA PKCS#1 v1.5 or OAEP encryption.

Syntax

Visual Basic (Usage)Copy Code
Dim dataToEncrypt As ArraySegment(Of Byte)
Dim encryptingCertificate As X509Certificate2
Dim useOaep As Boolean
Dim outputBuffer As ArraySegment(Of Byte)
Dim value As ArraySegment(Of Byte)
 
value = RsaUtils.Encrypt(dataToEncrypt, encryptingCertificate, useOaep, outputBuffer)

Parameters

dataToEncrypt
encryptingCertificate
useOaep
outputBuffer

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.