黄学彪
2019-12-09 163777d8a2cb7cfa469f54a7042528870ebc10a3
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs
@@ -1231,6 +1231,8 @@
        /// <returns></returns>
        public static string EncryptPassword(string keys, string strPsw)
        {
            try
            {
            if (strPsw == string.Empty)
            {
                return strPsw;
@@ -1248,7 +1250,9 @@
            {
                ret.AppendFormat("{0:X2}", b);
            }
            return ret.ToString();
                return ret.ToString().ToLower();
            }
            catch { return strPsw; }
        }
        /// <summary>
@@ -1257,6 +1261,8 @@
        /// <param name="strPsw"></param>
        /// <returns></returns>
        public static string DecryptPassword(string keys, string strPsw)
        {
            try
        {
            if (strPsw == string.Empty)
            {
@@ -1282,6 +1288,8 @@
            return System.Text.Encoding.Default.GetString(ms.ToArray());
        }
            catch { return strPsw; }
        }
        #endregion
        #region ■ 文件保存和读取_____________________