Share via


CryptoUtilities.EncryptSecretRSAPKCS(String, String) Method

Definition

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.

Applies to