Decrypts data that has been encrypted with the ProtectData method.
The decrypted data.
The entropy used during decryption must be the same as the entropy used during encryption.
Exception Type | Condition |
---|---|
ArgumentNullException | data is a null reference (Nothing in Visual Basic). |
ArgumentException | The specified offset or size exceeds the size of buffer. |
CryptographicException | An error occurs during the encryption process. Under some circumstances, Microsoft cryptographic service providers may not allow encryption when used in France. This may occur on down-level platforms such as Windows 98 and Windows NT 4.0, depending on the system's configuration and the version of the CSPs. |
DataProtectionCryptoServiceProvider Class | Org.Mentalis.Security.Cryptography Namespace | DataProtectionCryptoServiceProvider.UnprotectData Overload List