{"id":13735181,"url":"https://github.com/prjseal/PasswordGenerator","last_synced_at":"2025-05-08T11:32:30.446Z","repository":{"id":52893386,"uuid":"73497431","full_name":"prjseal/PasswordGenerator","owner":"prjseal","description":"A library which generates random passwords with different settings to meet the OWASP requirements","archived":false,"fork":false,"pushed_at":"2023-09-05T14:13:57.000Z","size":2671,"stargazers_count":178,"open_issues_count":8,"forks_count":43,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-06T01:43:20.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prjseal.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-11T17:25:58.000Z","updated_at":"2024-10-26T11:11:59.000Z","dependencies_parsed_at":"2024-01-12T01:14:58.164Z","dependency_job_id":"6e189f45-8962-413b-9aae-84b735002c32","html_url":"https://github.com/prjseal/PasswordGenerator","commit_stats":{"total_commits":40,"total_committers":3,"mean_commits":"13.333333333333334","dds":"0.050000000000000044","last_synced_commit":"0beb483fc6bf796bfa9f81db91265d74f90f29dd"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prjseal%2FPasswordGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prjseal%2FPasswordGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prjseal%2FPasswordGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prjseal%2FPasswordGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prjseal","download_url":"https://codeload.github.com/prjseal/PasswordGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224727173,"owners_count":17359532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:01:03.866Z","updated_at":"2024-11-15T03:31:31.886Z","avatar_url":"https://github.com/prjseal.png","language":"C#","funding_links":[],"categories":["Libraries"],"sub_categories":["Security"],"readme":"# Password Generator\n\n![Password Logo](https://github.com/prjseal/PasswordGenerator/blob/dev/v2/passwordgeneratorlogo.png \"Password Logo\")\n\nA .NET Standard library which generates random passwords with different settings to meet the OWASP requirements\n\n## NuGet\n\nInstall via NuGet: ``` Install-Package PasswordGenerator ```\n\n[![Nuget Downloads](https://img.shields.io/nuget/dt/PasswordGenerator.svg)](https://www.nuget.org/packages/PasswordGenerator)\n\n[Or click here to go to the package landing page](https://www.nuget.org/packages/PasswordGenerator)\n\nIt is Compatible with .NET Core, .NET Framework and more. See the below chart:\n\n![Compatibility Chart](https://github.com/prjseal/PasswordGenerator/blob/master/compatibility.png \"Compatibility Chart\")\n\n\n## Basic usage\n\nSee examples below or try them out now in your browser using [Dotnetfiddle](https://dotnetfiddle.net/Q0hMlU)\n\n```javascript\n// By default, all characters available for use and a length of 16\n// Will return a random password with the default settings \nvar pwd = new Password();\nvar password = pwd.Next();\n```\n\n```javascript\n// Same as above but you can set the length. Must be between 8 and 128\n// Will return a password which is 32 characters long\nvar pwd = new Password(32);\nvar password = pwd.Next();\n```\n\n```javascript\n// Same as above but you can set the length. Must be between 8 and 128\n// Will return a password which only contains lowercase and uppercase characters and is 21 characters long.\nvar pwd = new Password(includeLowercase: true, includeUppercase: true, includeNumeric: false, includeSpecial: false, passwordLength: 21);\nvar password = pwd.Next();\n```\n\n## Fluent usage\n\n```javascript\n// You can build up your reqirements by adding things to the end, like .IncludeNumeric()\n// This will return a password which is just numbers and has a default length of 16\nvar pwd = new Password().IncludeNumeric();\nvar password = pwd.Next();\n```\n\n```javascript\n// As above, here is how to get lower, upper and special characters using this approach\nvar pwd = new Password().IncludeLowercase().IncludeUppercase().IncludeSpecial();\nvar password = pwd.Next();\n```\n\n```javascript\n// This is the same as the above, but with a length of 128\nvar pwd = new Password(128).IncludeLowercase().IncludeUppercase().IncludeSpecial();\nvar password = pwd.Next();\n```\n\n```javascript\n// This is the same as the above, but with passes the length in using the method LengthRequired()\nvar pwd = new Password().IncludeLowercase().IncludeUppercase().IncludeSpecial().LengthRequired(128);\nvar password = pwd.Next();\n```\n\n```javascript\n// One Time Passwords\n// If you want to return a 4 digit number you can use this:\nvar pwd = new Password(4).IncludeNumeric();\nvar password = pwd.Next();\n```\n\n```javascript\n// Specify your own special characters\n// You can now specify your own special characters\nvar pwd = new Password().IncludeLowercase().IncludeUppercase().IncludeNumeric().IncludeSpecial(\"[]{}^_=\");\nvar password = pwd.Next();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprjseal%2FPasswordGenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprjseal%2FPasswordGenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprjseal%2FPasswordGenerator/lists"}