Click or drag to resize

PasswordGenerator Class

Generates random passwords.
Inheritance Hierarchy
SystemObject
  GSF.Security.CryptographyPasswordGenerator

Namespace: GSF.Security.Cryptography
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public class PasswordGenerator
View Source

The PasswordGenerator type exposes the following members.

Constructors
 NameDescription
Public methodPasswordGenerator Creates a new instance of the PasswordGenerator class.
Public methodPasswordGenerator(IEnumerableCharacterGroup) Creates a new instance of the PasswordGenerator class.
Top
Properties
 NameDescription
Public propertyAllCharacters Gets a string representing the total collection of characters across all character groups.
Public propertyCharacterGroups Gets the collection of character groups used by this PasswordGenerator.
Public propertyMinLength Gets the absolute minimum length of password that can be generated by the PasswordGenerator based on the minimum occurrence of each character group.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGeneratePassword Generates a random password with 8 characters or MinLength if it is greater than 8 characters.
Public methodGeneratePassword(Int32) Generates a password with the given length.
Public methodGeneratePassword(Int32, Int32) Generates a password with length between the given minLength and maxLength.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberDefault Defines the default password generator.
Public fieldStatic memberDefaultCharacterGroups Default set of character groups used by the PasswordGenerator.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also