Esempio n. 1
0
        public override string ToString()
        {
            string name = CryptographyStuff.AES_EncryptString(userName);
            string pw   = CryptographyStuff.AES_EncryptString(password);

            return(name + "||" + pw);
        }
Esempio n. 2
0
        public LoginInfo(string value)
        {
            string[] values = value.Split(new string[] { "||" }, StringSplitOptions.None);

            if (!string.IsNullOrEmpty(values[0]))
            {
                userName = CryptographyStuff.AES_DecryptString(values[0]);
            }
            if (!String.IsNullOrEmpty(values[1]))
            {
                password = CryptographyStuff.AES_DecryptString(values[1]);
            }
        }