SecurityServices for .NET 2.0 Documentation

StringEncryption.DecryptString Method (String)

[This is preliminary documentation and subject to change.]

Decrypts a given string.

public string DecryptString(
   String input
);

Parameters

String
The string to decrypt.

Return Value

A string containing the unencrypted data.

Remarks

The default encoding to convert the input string to an array of bytes is UTF-8.

Exceptions

Exception Type Condition
ArgumentNullException input is a null reference.
FormatException input is an invalid Base64 string.
ArgumentException The length of input is invalid.
CryptographicException An error occurs during the decryption or integrity verification.

See Also

StringEncryption Class | Org.Mentalis.SecurityServices.Cryptography Namespace | StringEncryption.DecryptString Overload List