You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.
Just FYI, this is a .NET bug. The cmdlet calls System.Web.Security.Membership.GeneratePassword(int length, int numberOfNonAlphanumericCharacters) which doesn't work properly.
Just FYI, this is a .NET bug. The cmdlet calls System.Web.Security.Membership.GeneratePassword(int length, int numberOfNonAlphanumericCharacters) which doesn't work properly.
good to know
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Get-StrongPassword -NumberOfSpecialCharacters
Says default value is 3
If i use any value less than 5 (0,1,2,3,4) it seems to return 5 (or more) special characters
0..4 | foreach-object {[pscustomobject]@{'NumSpecial' = $_; 'Password' = Get-StrongPassword -Length 20 -NumberOfSpecialCharacters $_}}
NumSpecial Password
0 JN}ts#!^FycNj[9E]5;&
1 5sIV76]2!oZ>prk9d(P
2 23n8U.}_{kZGzj-ClUbE
3 ]hUPY-QS^Q2cViGk!jf
4 4E>O[FrM]d}@A5qKFv4H
so what is considered a special character
0 has 8, 1 has 5, 2 has 5, 3 has 5, 4 has 5
The text was updated successfully, but these errors were encountered: