Ejemplo n.º 1
0
 private bool UserValidate()
 {
     try
     {
         if (OVRSimpleEncryption.Decrypt(strUserPassword) == txPwd.Text)
         {
             return(true);
         }
     }
     catch (System.Exception ex)
     {
     }
     return(true);
 }
Ejemplo n.º 2
0
        private string PasswordProcessing(string strConnectionString, bool bEncrypt)
        {
            string strNewConnectionString = null;
            string strPassword = null, strTemp = null;

            int iSta, iEnd;

            iSta = strConnectionString.IndexOf("Password="******"Password="******"Password=" + strTemp);
            }
            return(strNewConnectionString);
        }