1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-16 00:04:34 +00:00

restore deltas when sync is not sent to server

This commit is contained in:
Kyle Spearrin
2017-05-16 17:06:12 -04:00
parent 98b2b8aa33
commit 23d3300c4f
2 changed files with 21 additions and 4 deletions

View File

@@ -29,12 +29,12 @@ namespace Bit.Core.Models
public byte[] Decrypt()
{
return ProtectedData.Unprotect(Value, IV, DataProtectionScope.CurrentUser);
return ProtectedData.Unprotect(Value, IV, DataProtectionScope.LocalMachine);
}
public string DecryptToString()
{
var bytes = ProtectedData.Unprotect(Value, IV, DataProtectionScope.CurrentUser);
var bytes = ProtectedData.Unprotect(Value, IV, DataProtectionScope.LocalMachine);
return Encoding.UTF8.GetString(bytes);
}