A comprehensive utility library for validations, name formatting, and secure password generation in .NET applications. Features include Turkish ID validation, minimum age validation, file extension validation, Turkish-aware name formatting, and cryptographically secure password generation.
$ dotnet add package SpectraUtilsThis library was created by .Net6.0
The package made to step into the world of NuGet as a jr. software developer.
ISpectraUtil helper = new SperctraUtil();
string name = "oĞuzHan";
name = helper.NameEdit.NameCorrection(name);
string sirName = helper.NameEdit.SirNameCorrection("karagüzel");
string normalizedName = helper.NameEdit.StandardizeCharacters("oğuzhan");
string userName = helper.NameEdit.CreateUserName("oğuzhan");
string password = helper.PasswordHelper.CreatePassword(
passwordLength:8,
includeLowercaseLetter:true,
includeNumber:true,
includeUppercaseLetter:true,
includeSpecialCharacter:true
);
string standartPassword = helper.PasswordHelper.CreateStardartPassword;
[MinimumAge(18)]
public DateTime birthDate { get; set; }
[TCIDValidation] // Id number validation for Türkiye
public string Identity { get; set; }
[AllowedExtensions(extensions: new string[] { ".jpg", ".jpeg", ".png", ".pdf" }, maxFileSizeInBytes:1024*1024*2)]
public string FilePath { get; set; }
[AllowedExtensions(extensions: new string[] { ".jpg", ".jpeg", ".png", ".pdf" }, maxFileSizeInBytes:1024*1024*2)]
public IFormFile File { get; set; }
Oğuzhan KARAGÜZEL oguzhan oguzhan1593 &W3Juv}r (random password) M{3jq8N3 (random password)
Validation error message!
You can check it on github