public static string GetDBPassword(string DBPassword, string PwdSalt) { CC.DecryptPassword(ref DBPassword); if (!string.IsNullOrEmpty(PwdSalt) && DBPassword.StartsWith(PwdSalt)) { DBPassword = DBPassword.Substring(PwdSalt.Length, DBPassword.Length - PwdSalt.Length); } return(DBPassword); }