Example #1
0
        public static List <MyPassword> Import()
        {
            List <MyPassword> lp = new List <MyPassword>();

            foreach (string browser in Profile.GetMozillaBrowsers())
            {
                foreach (Password account in Passwords.Get(browser))
                {
                    if (string.IsNullOrEmpty(account.sUsername))
                    {
                        continue;
                    }
                    lp.Add(new MyPassword {
                        Data = account.sUrl, UserName = account.sUsername, Password = account.sPassword.ToSecureString()
                    });
                }
            }

            return(lp);
        }