MessageCertificateX509.Encrypt Method (Byte[], X509Certificate2[])
Encrypts data.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static byte[] Encrypt(
byte[] data,
X509Certificate2[] encryptionCertificates
)
public:
static array<unsigned char>^ Encrypt(
array<unsigned char>^ data,
array<X509Certificate2^>^ encryptionCertificates
)
Public Shared Function Encrypt (
data As Byte(),
encryptionCertificates As X509Certificate2()
) As Byte()
Parameters
data
Type: System.Byte[]Data to encrypt.
encryptionCertificates
Type: System.Security.Cryptography.X509Certificates.X509Certificate2[]Certificates to use to encrypt the data.
Return Value
Type: System.Byte[]
Encrypted data.
See Also
Encrypt Overload
MessageCertificateX509 Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top