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.
Datei anzeigen Open project: Microsoft/StopGuessing Class Usage Examples

Public Properties

Property Type Description
OrderedListOfMostCommonPasswords List

Public Methods

Method 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

Method 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 method

Gets a password from a realistic password distribution.
public GetPasswordFromWeightedDistribution ( ) : string
return string

LoadKnownPopularPasswords() public method

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

PrimeWithKnownPasswordsAsync() public method

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
return void

SimulatedPasswords() public method

public SimulatedPasswords ( DebugLogger logger, ExperimentalConfiguration config ) : System
logger DebugLogger
config ExperimentalConfiguration
return System

Property Details

OrderedListOfMostCommonPasswords public_oe property

public List OrderedListOfMostCommonPasswords
return List