Click or drag to resize

WipeData Method

Zeroise data in memory.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.25611 (23.0.0.0)
Syntax
public static bool Data(
	byte[] data
)

Parameters

data  Byte
data to be wiped

Return Value

Boolean
true if successful; false if fails
Example
C#
byte[] b = System.Text.Encoding.Default.GetBytes("Secret data");
Console.WriteLine("Before Wipe.Data, b = [{0}]", System.Text.Encoding.Default.GetString(b));
Wipe.Data(b);
Console.WriteLine("After Wipe.Data,  b = [{0}]", System.Text.Encoding.Default.GetString(b));
// Before Wipe.Data, b = [Secret data]
// After Wipe.Data,  b = [           ]
See Also