Exemplo n.º 1
0
        public static OldShipUserInfo GetOldShipUserInfo(string UserName, string ClearTextPassword)
        {
            string          EncryptedPassword = EncryptorFactory.CreateEncryptor(EncryptionType.DES).Encrypt(ClearTextPassword);
            OldShipUserInfo oldInfo           = null;

            //If User provided valid Login/Password, then get user info.
            if (UserDAL.OldShipUserLogin(UserName, EncryptedPassword))
            {
                oldInfo = UserDAL.GetOldShipUserInfo(UserName);
            }
            return(oldInfo);
        }
Exemplo n.º 2
0
        private static string GetEncryptedPassword(string clearTextPassword)
        {
            Encryptor enc = EncryptorFactory.CreateEncryptor(EncryptionType.TripleDES);

            return(enc.Encrypt(clearTextPassword));
        }