EncryptionUtility.EncryptValue(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.
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