public async Task SetKey() { _key = await SecureStorage.GetAsync("secrets_key"); if (_key == null) { await SecureStorage.SetAsync("secrets_key", SecureService.GenerateKey()); _key = await SecureStorage.GetAsync("secrets_key"); } }
public void ResetKey() { SecretKey = SecureService.GenerateKey(); }