Skip to content

sidlovskyy/RandomStringGenerator

Repository files navigation

This library (of almost single public class :)) allows to generate random strings using fluent configuration.
It may be used for example for random password generation.

Example of code:
-------------------------------------------------------
var generator = new StringGenerator()
	.WithNumericCount(2)
	.WithSpecialCharacters(new[] { '@', '#', '!' })
	.WithSpecialCount(1)
	.WithUppercaseCountBetween(1, 3)
	.WithLengthBetween(10,15);

Console.WriteLine(generator.Generate());
Console.WriteLine(generator.Generate());
Console.WriteLine(generator.Generate());

Output:
-------------------------------------------------------
hPZg9lya@3fblkO
Arkiq@vaZ75
dyHNu5O2m#

Please let me know if you have found any issues or would like to support more configurations.

About

Random string generator for .NET with fluent configuration

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages