C# Class Simulator.SimulatedPasswords

This class tracks information about passwords to be used by the simulator. Specifically, it reads in a password distribution for simulating user's password choices.
Afficher le fichier Open project: Microsoft/StopGuessing Class Usage Examples

Méthodes publiques

Свойство Type Description
OrderedListOfMostCommonPasswords List

Méthodes publiques

Méthode Description
GetPasswordFromWeightedDistribution ( ) : string

Gets a password from a realistic password distribution.

LoadKnownPopularPasswords ( string pathToPreviouslyKnownPopularPasswordFile ) : void

This method loads in the file containing passwords that StopGuessing knew were popular before the simulation begins

PrimeWithKnownPasswordsAsync ( BinomialLadderFilter freqFilter, int numberOfTimesToPrime ) : void

This method will prime the simulator with known-popular passwords so that they are treated as if the simulator had already observed them (or been configured with them)

SimulatedPasswords ( DebugLogger logger, ExperimentalConfiguration config ) : System

Private Methods

Méthode Description
LoadPasswordSelector ( string pathToWeightedFrequencyFile ) : void

Given the path of a file containing a count, followed by a space, followed by a password, this method reads in the distribution and creates a password selector that can provide passwords sampled from that distribution.

Method Details

GetPasswordFromWeightedDistribution() public méthode

Gets a password from a realistic password distribution.
public GetPasswordFromWeightedDistribution ( ) : string
Résultat string

LoadKnownPopularPasswords() public méthode

This method loads in the file containing passwords that StopGuessing knew were popular before the simulation begins
public LoadKnownPopularPasswords ( string pathToPreviouslyKnownPopularPasswordFile ) : void
pathToPreviouslyKnownPopularPasswordFile string
Résultat void

PrimeWithKnownPasswordsAsync() public méthode

This method will prime the simulator with known-popular passwords so that they are treated as if the simulator had already observed them (or been configured with them)
public PrimeWithKnownPasswordsAsync ( BinomialLadderFilter freqFilter, int numberOfTimesToPrime ) : void
freqFilter StopGuessing.DataStructures.BinomialLadderFilter
numberOfTimesToPrime int
Résultat void

SimulatedPasswords() public méthode

public SimulatedPasswords ( DebugLogger logger, ExperimentalConfiguration config ) : System
logger DebugLogger
config ExperimentalConfiguration
Résultat System

Property Details

OrderedListOfMostCommonPasswords public_oe property

public List OrderedListOfMostCommonPasswords
Résultat List