Decrypts the data in a specified byte array and returns a byte array that contains the decrypted data.
Assembly: mscorlib.Extensions (in mscorlib.Extensions.dll)
[SecuritySafeCriticalAttribute] public static byte Unprotect( byte encryptedData, byte optionalEntropy )
- Type: System.Byte
An optional additional byte array that was used to encrypt the data, or null if the additional byte array was not used.
Return ValueType: System.Byte
A byte array representing the decrypted data.
This method can be used to unprotect data that was encrypted using the Protect method. If the optionalEntropy parameter was used during encryption, it must be supplied to unencrypt the data.
If you use this method during impersonation, you may receive the following error: "Key not valid for use in specified state." To prevent this error, load the profile of the user you want to impersonate before calling the method.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.