1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

cipher service interface

This commit is contained in:
Kyle Spearrin
2019-04-16 23:30:52 -04:00
parent a1a8c95ece
commit 98291caf76
2 changed files with 41 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ using System.Threading.Tasks;
namespace Bit.Core.Services
{
public class CipherService
public class CipherService : ICipherService
{
private const string Keys_CiphersFormat = "ciphers_{0}";
private const string Keys_LocalData = "ciphersLocalData";
@@ -558,7 +558,7 @@ namespace Bit.Core.Services
DecryptedCipherCache = null;
}
public async Task RelaceAsync(Dictionary<string, CipherData> ciphers)
public async Task ReplaceAsync(Dictionary<string, CipherData> ciphers)
{
var userId = await _userService.GetUserIdAsync();
await _storageService.SaveAsync(string.Format(Keys_CiphersFormat, userId), ciphers);