Class ProtectedData
- Namespace
- Akavache
- Assembly
- Akavache.Core.dll
A shim to allow the use of protected data.
- Inheritance
-
Protected
Data
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
DataProtection Scope 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
DataProtection Scope The scope where to store the data.
Returns
- byte[]
The original data.