Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Security
General Security Discussions
Should you let free online password generators create your passwords?
Message
<blockquote data-quote="ForgottenSeer 98186" data-source="post: 1023467"><p>[ICODE]</p><p># This short PowerShell function will generate a password of $length and use non-alphanumeric symbols in the amount of $amountOfNonAlphanumeric</p><p># Copy-paste the function below into a Windows PowerShell (powershell.exe) console, then enter "Get-RandomPassword <length> <# of alphanumeric symbols></p><p>#</p><p># Syntax and Example:</p><p>#</p><p># Get-RandomPassword <length> <# of alphanumeric symbols></p><p># Get-RandomPassword 10 5</p><p>#</p><p># Output: ]a].{2wX[V</p><p></p><p></p><p>function Get-RandomPassword {</p><p> param (</p><p> [Parameter(Mandatory)]</p><p> [int] $length,</p><p> [int] $amountOfNonAlphanumeric = 1</p><p> )</p><p> Add-Type -AssemblyName 'System.Web'</p><p> return [System.Web.Security.Membership]::GeneratePassword($length, $amountOfNonAlphanumeric)</p><p>}</p><p>[/ICODE]</p></blockquote><p></p>
[QUOTE="ForgottenSeer 98186, post: 1023467"] [ICODE] # This short PowerShell function will generate a password of $length and use non-alphanumeric symbols in the amount of $amountOfNonAlphanumeric # Copy-paste the function below into a Windows PowerShell (powershell.exe) console, then enter "Get-RandomPassword <length> <# of alphanumeric symbols> # # Syntax and Example: # # Get-RandomPassword <length> <# of alphanumeric symbols> # Get-RandomPassword 10 5 # # Output: ]a].{2wX[V function Get-RandomPassword { param ( [Parameter(Mandatory)] [int] $length, [int] $amountOfNonAlphanumeric = 1 ) Add-Type -AssemblyName 'System.Web' return [System.Web.Security.Membership]::GeneratePassword($length, $amountOfNonAlphanumeric) } [/ICODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Top