#region 随机生成密码
        public static string RandomPassword(int pwdlen)
        {
            string tmpstr = "";
            string pwdchars = "abcdefghijklmnopqrstuvwxyz0123456789";
            int iRandNum;
            Random rnd = new Random();
            for (int i = 0; i < pwdlen; i++)
            {
                iRandNum = rnd.Next(pwdchars.Length);
                tmpstr += pwdchars[iRandNum];
            }
            return tmpstr;
        }
        #endregion

相关文章:

  • 2022-01-15
  • 2021-07-31
  • 2021-10-28
  • 2021-07-02
  • 2021-10-06
  • 2021-09-19
猜你喜欢
  • 2022-01-18
  • 2021-07-23
  • 2021-11-20
  • 2021-09-05
相关资源
相似解决方案