Table of Contents

Class ProtectedData

Namespace
Akavache
Assembly
Akavache.Core.dll

A shim to allow the use of protected data.

public static class ProtectedData
Inheritance
ProtectedData

Methods

Protect(byte[], byte[]?, DataProtectionScope)

Protected the specified data.

public static byte[] Protect(byte[] originalData, byte[]? entropy, DataProtectionScope scope = DataProtectionScope.CurrentUser)

Parameters

originalData byte[]

The original data being passed.

entropy byte[]

Entropy to help with randomness.

scope DataProtectionScope

The scope where to store the data.

Returns

byte[]

The original data.

Unprotect(byte[], byte[]?, DataProtectionScope)

Unprotected the specified data.

public static byte[] Unprotect(byte[] originalData, byte[]? entropy, DataProtectionScope scope = DataProtectionScope.CurrentUser)

Parameters

originalData byte[]

The original data being passed.

entropy byte[]

Entropy to help with randomness.

scope DataProtectionScope

The scope where to store the data.

Returns

byte[]

The original data.