Secure random password generator for .NET and PowerShell
Switch branches/tags
Nothing to show
Clone or download
mkropat Merge pull request #7 from mkropat/predicate-fix
Fix -Predicate for New-PronounceablePassword
Latest commit 9b6b194 Sep 23, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MlkPwgen.FrequencyCounter Multi-target net45 and .net standard Mar 4, 2017
MlkPwgen
Powershell/MlkPwgen Bump up default pronounceable password size Sep 23, 2017
gh-pages @ 4c4e289 Add .NET documentation Jan 23, 2016
.gitignore Add powershell-dev.cmd Sep 23, 2017
.gitmodules Add .NET documentation Jan 23, 2016
Generate-TrigramStatistics.ps1 Improve stats script Mar 4, 2017
LICENSE.txt Set metadata Mar 4, 2017
MlkPwgen.shfbproj Add .NET documentation Jan 23, 2016
MlkPwgen.sln Convert to new csproj format Mar 4, 2017
README.md Add downloads badge Sep 3, 2017
pack.cmd Add pack.cmd Mar 4, 2017
powershell-dev.cmd Add powershell-dev.cmd Sep 23, 2017

README.md

MlkPwgen

Secure random password generator for .NET and PowerShell

NuGet

Benefits at a glance:

.NET

The library is available from NuGet:

Install-Package MlkPwgen

Import the namespace:

using MlkPwgen;

Then calling the library is as simple as:

Console.WriteLine(PasswordGenerator.Generate());

Check out the API Documentation for full details.

PowerShell

Installation

With PowerShell 5, installation is as simple as:

Install-Module MlkPwgen

Usage

Generate a handful of passwords:

PS > 1..5 | foreach { New-Password }
xVs7tYANfs
FGQ4hF29Oe
QHffH4QRUE
ai1AaBqSMe
Dd7cnAG8a8

Generate letters only:

PS > New-Password -Lower -Upper
HccNubILPl

Digits only:

PS > New-Password -Digits -Length 6
470114

All together now, with symbols:

PS > New-Password -Lower -Upper -Digits -Symbols
y3iF(g(xUw

Generate pronounceable passwords:

PS > 1..5 | foreach { New-PronounceablePassword }
NaternNeam
LumLictles
StZattlate
InfeHascal
Tighampers

Pronounceable passwords can have digits and symbols too:

PS > New-PronounceablePassword -Digits -Symbols
^Norompog2

Pronounceable Password Algorithm

Credit for the algorithm used to generate pronounceable password goes to Tom Van Vleck. I've made a few changes along the way:

  • The algorithm has been modified to take into account word endings
  • The data tables have been generated from a new source
  • I added the ability to mix in random character sets (such as digits and symbols) into the generated password