private void CreateMessage()
 {
     _msg = new JsonBase
     {
         { "hash", KeePassNatMsgExt.ExtInstance.GetDbHash() },
         { "version", KeePassNatMsgExt.GetVersion() },
         { "success", "true" },
         { "nonce", Nonce }
     };
 }
Exemple #2
0
 public bool TryDecrypt()
 {
     try
     {
         _msg = KeePassNatMsgExt.CryptoHelper.DecryptMessage(GetBytes("message"), GetBytes("nonce"));
         return(true);
     }
     catch (Exception)
     {
         _msg = null;
     }
     return(false);
 }