CryptoHelper.EncryptSecretRSAPKCS(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method encrypts a given secret using the public certificate.
public static string EncryptSecretRSAPKCS (string plainText, string publicCertificate);
static member EncryptSecretRSAPKCS : string * string -> string
Public Shared Function EncryptSecretRSAPKCS (plainText As String, publicCertificate As String) As String
Parameters
- plainText
- String
The secret in plain text.
- publicCertificate
- String
The public certificate to be used for encryption.
Returns
The encrypted secret.