EncryptionUtility.EncryptValue(String, String, String) Method

Definition

Caution

Deprecated by EncryptText

Encrypts string value using specified certificate. This method is deprecated; EncryptText method should be used instead.

[System.Obsolete("Deprecated by EncryptText", false)]
public static string EncryptValue (string thumbprint, string storeLocation, string textToEncrypt);
[<System.Obsolete("Deprecated by EncryptText", false)>]
static member EncryptValue : string * string * string -> string
Public Shared Function EncryptValue (thumbprint As String, storeLocation As String, textToEncrypt As String) As String

Parameters

thumbprint
String

The thumbprint of certificate used to encrypt text.

storeLocation
String

The StoreName for the certificate. Defaults to "My" store.

textToEncrypt
String

The text value that needs to be encrypted.

Returns

The encrypted text as String.

Attributes

Applies to