Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/peterbozso/identitypasswordgenerator

IdentityPasswordGenerator is a library for generating passwords based on ASP.NET Core Identity password options.
https://github.com/peterbozso/identitypasswordgenerator

aspnetcore identity password

Last synced: 18 days ago
JSON representation

IdentityPasswordGenerator is a library for generating passwords based on ASP.NET Core Identity password options.

Awesome Lists containing this project

README

        

# IdentityPasswordGenerator

IdentityPasswordGenerator is a library for generating passwords based on ASP.NET Core Identity password options.

## Usage

Get the package from [NuGet.](https://www.nuget.org/packages/IdentityPasswordGenerator/)

Then in your code:

```csharp
using IdentityPasswordGenerator;
using Microsoft.AspNetCore.Identity;

var passwordGenerator = new PasswordGenerator();
var options = new PasswordOptions();
var password = passwordGenerator.GeneratePassword(options);
```

See [IPasswordGenerator](src/IdentityPasswordGenerator/IPasswordGenerator.cs) for more details.

## Credits

The idea of this library is coming from [this Stack Overflow answer.](https://stackoverflow.com/a/46229180/3078296)