PasswordGenerator Class

Generates random passwords.

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public class PasswordGenerator
Inheritance
Object    PasswordGenerator

Constructors

PasswordGenerator Creates a new instance of the PasswordGenerator class.
PasswordGenerator(IEnumerableCharacterGroup) Creates a new instance of the PasswordGenerator class.

Properties

AllCharacters Gets a string representing the total collection of characters across all character groups.
CharacterGroups Gets the collection of character groups used by this PasswordGenerator.
MinLength Gets the absolute minimum length of password that can be generated by the PasswordGenerator based on the minimum occurrence of each character group.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GeneratePassword Generates a random password with 8 characters or MinLength if it is greater than 8 characters.
GeneratePassword(Int32) Generates a password with the given length.
GeneratePassword(Int32, Int32) Generates a password with length between the given minLength and maxLength.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

Default Defines the default password generator.
DefaultCharacterGroups Default set of character groups used by the PasswordGenerator.

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also