Categories
.NET C#

Built-in .NET-function to generate passwords

Recently I’ve found a method GeneratePassword() in the good old .NET full framework, in the System.Web.Security-namespace. It has two parameters to specify the complexity of the password.

public static string GeneratePassword (int length, int numberOfNonAlphanumericCharacters);

Leave a Reply

Your email address will not be published. Required fields are marked *