SecurityServices for .NET 2.0 Documentation

StringEncryption.DecryptString Method (String, Encoding)

[This is preliminary documentation and subject to change.]

Decrypts a given string.

public string DecryptString(
   String input,
   Encoding encoding
);

Parameters

String
The string to decrypt.
Encoding
The encoding to use to convert the string to an array of bytes.

Return Value

A string containing the unencrypted data.

Exceptions

Exception Type Condition
ArgumentNullException input or encoding 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