Decrypts a given string.
Namespace: LLCryptoLib.Security.CryptographyAssembly: 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
Exception | Condition |
---|
System..::..ArgumentNullException | input or encoding is a null reference. |
System..::..FormatException | input is an invalid Base64 string. |
System..::..ArgumentException | The length of input is invalid. |
System.Security.Cryptography..::..CryptographicException | An error occurs during the decryption or integrity verification. |
See Also