Example #1
0
        private void LoadLogins()
        {
            var logins = Properties.Settings.Default.Logins;

            Logins = JsonConvert.DeserializeObject <List <Login> >(logins) ?? new List <Login>();

            var psw = new PasswordEncoder();

            foreach (var login in Logins)
            {
                psw.EncryptedPassword = login.Password;
                login.Password        = psw.DecryptWithByteArray();
            }
        }