PasswordGeneratorHelper - NuGET

PasswordGeneratorHelper
What’s PasswordGeneratorHelper?
Password Generator Helper - Do you need one or more RANDOM PASSWORD? This NuGET can help you!
During the last weekend, I released a new NuGET. This NuGET can help you when you need a random password. I wrote the code with netstandard2.1, so you can add this NuGET in your project without problems.
How To Install
If you want to use PasswordGeneratorHelper inside your application, you can only add the nuget in your project.
|
|
Did you add PasswordGeneratorHelper in your project? Ok, we are ready to use it!
Password Generator
As first step, we can add the using in your class
|
|
Constructor
The constructor works in two ways:
- zero parameter
- four parameters
If you call without parameters, all parameters are true.
|
|
Flag | ASCII FROM | Next Chars |
---|---|---|
upperCase | 65 | 26 |
lowerCase | 97 | 26 |
numericCase | 48 | 10 |
specialCase | 32 | 16 |
specialCase | 58 | 7 |
specialCase | 91 | 6 |
specialCase | 123 | 4 |
In the ASCII Table the specialCase chars are split in four groups. If you enable this flag, you get all groups.
If all parameters are false, you receive an exception.
Get
The Get method is very simple to use. You can only indicate the password length. As result, you’ll have the new random password.
|
|
Get Min/ Max
This method works as the previous, but you can generate password with a random lenght from minLength to maxLenght lenght.
|
|
CustomException
The namaspace PasswordGeneratorHelper.CustomException contains this exceptions:
- InvalidCharSetException
- InvalidPasswordLengthException
Release History
Do you like PasswordGeneratorHelper?
Release | LastUpdate | Note |
---|---|---|
2021.193.15.650 | 2021/07/13 | Get from min to max lenght; CustomException (InvalidCharSetException & InvalidPasswordLengthException); New icon from MeCreativa |
2021.186.7.645 | 2021/07/04 | Core Improvements + NuGET Tags / Icon |
2021.183.20.643 | 2021/07/02 | First minimal version with .Get(-lenght-) |
Do you like PasswordGeneratorHelper?