using System.Web.Security
var rawPassword = System.Web.Security.Membership.GeneratePassword(10,1)
return Regex.Replace(rawPassword, @"[^a-zA-Z0-9]", m => "9");
posted on 2016-08-12 08:55 新西兰程序员 阅读(1653) 评论(0) 编辑 收藏 举报