Table of contents
TOC
Collapse the table of content
Expand the table of content

X509CertificateUtility.Decrypt Method

SharePoint Dev Documents|Last Updated: 5/19/2017
|
1 Contributor

Decrypts data based on the RSACryptoServiceProvider

Namespace:OfficeDevPnP.Core.Utilities
Assembly: OfficeDevPnP.Core.dll

Syntax

public static Byte[] Decrypt(Byte[] encryptedData, Boolean fOAEP, X509Certificate2 certificate)

Parameters

encryptedData

  Type: System.Byte[]
  Bytes to decrypt

fOAEP

  Type: System.Boolean
   true to perform direct System.Security.Cryptography.RSA decryption using OAEP padding

certificate

  Type: System.Security.Cryptography.X509Certificates.X509Certificate2
  Certificate to use

Return Value

Type: Byte[]
Decrypted bytes

See also

© 2018 Microsoft