Decrypts a given string.

Namespace: LLCryptoLib.Security.Cryptography
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public string DecryptString(
	string input,
	Encoding encoding
)
Visual Basic
Public Function DecryptString ( _
	input As String, _
	encoding As Encoding _
) As String
Visual C++
public:
String^ DecryptString(
	String^ input, 
	Encoding^ encoding
)

Parameters

input
Type: System..::..String
The string to decrypt.
encoding
Type: System.Text..::..Encoding
The encoding to use to convert the string to an array of bytes.

Return Value

A string containing the unencrypted data.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptioninput or encoding is a null reference.
System..::..FormatExceptioninput is an invalid Base64 string.
System..::..ArgumentExceptionThe length of input is invalid.
System.Security.Cryptography..::..CryptographicExceptionAn error occurs during the decryption or integrity verification.

See Also