PasswordGenerator pwdGen = new PasswordGenerator(includeLowercase: true, includeUppercase: true, includeNumeric: false, includeSpecial: false, passwordLength: 21) įluent usage // You can build up your reqirements by adding things to the end, like. Will return a password which only contains lowercase and uppercase characters and is 21 characters long. PasswordGenerator pwdGen = new PasswordGenerator(32) Will return a password which is 32 characters long Same as above but you can set the length. PasswordGenerator pwdGen = new PasswordGenerator() Will return a random password with the default settings See examples below or try them out now in your browser using Dotnetfiddle // By default, all characters available for use and a length of 16 Or click here to go to the package landing page Basic usage Install via NuGet: Install-Package PasswordGenerator A library which generates random passwords with different settings to meet the OWASP requirements NuGet
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |