EncryptionUtility.EncryptTextByCertFile(String, 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.
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.