简单生成随机密码
Posted feiyucha
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了简单生成随机密码相关的知识,希望对你有一定的参考价值。
Membership.GeneratePassword(Int32, Int32) //生成指定长度的随机密码
Add-Type -AssemblyName system.web
[System.Web.Security.Membership]::GeneratePassword(10,5)
1..8|%{[System.Web.Security.Membership]::GeneratePassword(10,2)} ##生成多个随机密码
以上是关于简单生成随机密码的主要内容,如果未能解决你的问题,请参考以下文章