C# 클래스 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.
파일 보기 프로젝트 열기: Microsoft/StopGuessing 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
OrderedListOfMostCommonPasswords List

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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.

메소드 상세

GetPasswordFromWeightedDistribution() 공개 메소드

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

LoadKnownPopularPasswords() 공개 메소드

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

PrimeWithKnownPasswordsAsync() 공개 메소드

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
리턴 void

SimulatedPasswords() 공개 메소드

public SimulatedPasswords ( DebugLogger logger, ExperimentalConfiguration config ) : System
logger DebugLogger
config ExperimentalConfiguration
리턴 System

프로퍼티 상세

OrderedListOfMostCommonPasswords 공개적으로 프로퍼티

public List OrderedListOfMostCommonPasswords
리턴 List