예제 #1
0
        /// <summary>
        /// 生成PCCode
        /// </summary>
        /// <param name="UserName"></param>
        /// <returns></returns>
        public static string CreatePCCode(JH_Auth_User user)
        {
            string strPCCode = EncrpytHelper.Encrypt(user.UserName + user.UserPass + DateTime.Now.ToString("yyyy-MM-dd HH:mm")).Replace("+", "").Replace("=", "");

            return(strPCCode);
        }
예제 #2
0
파일: CommonHelp.cs 프로젝트: jaysue/zyweb
 /// <summary>
 /// 生成PCCode
 /// </summary>
 /// <param name="UserName"></param>
 /// <returns></returns>
 public static string CreatePCCode(JH_Auth_User user)
 {
     string strPCCode = EncrpytHelper.Encrypt(user.UserName + "@" + user.UserPass + "@" + DateTime.Now.ToString("yyyy-MM-dd HH:mm"));
     return strPCCode;
 }