1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 00:03:22 +00:00
This commit is contained in:
Kyle Spearrin
2016-05-02 17:50:16 -04:00
parent bc3d9c4465
commit e05ed4c1f2
33 changed files with 298 additions and 77 deletions

View File

@@ -51,11 +51,30 @@ namespace Bit.App.Services
}
set
{
_secureStorage.Store(KeyKey, value);
_keyParameter = new KeyParameter(value);
if(value != null)
{
_secureStorage.Store(KeyKey, value);
}
else
{
_secureStorage.Delete(KeyKey);
_keyParameter = null;
}
}
}
public string Base64Key
{
get
{
if(Key == null)
{
return null;
}
return Convert.ToBase64String(Key);
}
}
public string Base64Key { get { return Convert.ToBase64String(Key); } }
public CipherString Encrypt(string plaintextValue)
{