EncryptionUtility.DecryptText Method

Definition

Overloads

DecryptText(String)

Decrypt a text string encrypted by EncryptText methods of EncryptionUtility, it is assumed that the store location of decryption certificate is LocalMachine.

DecryptText(String, StoreLocation)

Decrypt a text string encrypted by EncryptText methods of EncryptionUtility.

DecryptText(String)

Decrypt a text string encrypted by EncryptText methods of EncryptionUtility, it is assumed that the store location of decryption certificate is LocalMachine.

public static System.Security.SecureString DecryptText (string textToDecrypt);
static member DecryptText : string -> System.Security.SecureString
Public Shared Function DecryptText (textToDecrypt As String) As SecureString

Parameters

textToDecrypt
String

The encrypted text to decrypt.

Returns

The decrypted text as SecureString.

Applies to

DecryptText(String, StoreLocation)

Decrypt a text string encrypted by EncryptText methods of EncryptionUtility.

public static System.Security.SecureString DecryptText (string textToDecrypt, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation);
static member DecryptText : string * System.Security.Cryptography.X509Certificates.StoreLocation -> System.Security.SecureString
Public Shared Function DecryptText (textToDecrypt As String, storeLocation As StoreLocation) As SecureString

Parameters

textToDecrypt
String

The encrypted text to decrypt.

storeLocation
StoreLocation

The certificate store location to retrieve decryption certificate.

Returns

The decrypted text as SecureString.

Applies to