Esempio n. 1
0
        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");
            }
        }
Esempio n. 2
0
 public void ResetKey()
 {
     SecretKey = SecureService.GenerateKey();
 }