System.Security.Cryptography.ProtectedMemory.Unprotect Method

Unprotects data in memory that was protected using the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method.

Syntax

public static void Unprotect (byte[] encryptedData, MemoryProtectionScope scope)

Parameters

encryptedData
The byte array in memory to unencrypt.
scope
One of the enumeration values that specifies the scope of memory protection.

Remarks

This method can be used to unencrypt data in memory that was encrypted using the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method.

Support for this method is available in the Windows XP and later operating systems.

Requirements

Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0