Esempio n. 1
0
        public static void get(string trustedContactName)
        {
            XElement xMyKey = XMLService.getElement(path, xElementName, xAttributeName, trustedContactName);

            name   = trustedContactName;
            pubKey = xMyKey.Attribute("pubKey").Value;
            note   = xMyKey.Attribute("note").Value;
        }
Esempio n. 2
0
        public static void get(string myKeyName)
        {
            XElement xMyKey = XMLService.getElement(path, xElementName, xAttributeName, myKeyName);

            name       = myKeyName;
            privPubKey = xMyKey.Attribute("privPubKey").Value;
            note       = xMyKey.Attribute("note").Value;
        }
Esempio n. 3
0
        public static void get()
        {
            try
            {
                XElement xSetting = XMLService.getElement(path, xElementName);

                aesIv         = xSetting.Attribute("aesIv").Value;
                salt          = xSetting.Attribute("salt").Value;
                genPassLength = Int32.Parse(xSetting.Attribute("genPassLength").Value);
                rsaKeyLength  = Int32.Parse(xSetting.Attribute("rsaKeyLength").Value);
                autoSignMsg   = Boolean.Parse(xSetting.Attribute("autoSignMsg").Value);
                autoSignName  = xSetting.Attribute("autoSignName").Value;
                userPassword  = xSetting.Attribute("userPassword").Value;
            }
            catch (Exception ex)
            {
                LogService.add(ex.ToString());
            }
        }