EncryptionUtility.EncryptTextByCertFile(String, String, String) Method

Definition

Encrypt text string with an X509 certificate in a file.

public static string EncryptTextByCertFile (string textToEncrypt, string certFileName, string algorithmOid);
static member EncryptTextByCertFile : string * string * string -> string
Public Shared Function EncryptTextByCertFile (textToEncrypt As String, certFileName As String, algorithmOid As String) As String

Parameters

textToEncrypt
String

The text to encrypt.

certFileName
String

The encryption certificate file path.

algorithmOid
String

The encryption algorithm object identifier (OID).

Returns

The encrypted text as String.

Applies to