/// <summary> /// All available analyzers will be run against the password. /// <para>Internet access will be required.</para> /// </summary> /// <returns>A <see cref="Task{TResult}"/> with the <see cref="FullAnalyzerResult"/> containing the result of the analysis.</returns> public async Task <FullAnalyzerResult> RunFullAnalyzerAsync() { StringPatternAnalyzer stringPatternAnalyzer = new StringPatternAnalyzer(password); StringPatternAnalyzerResult stringPatternAnalyzerResult = stringPatternAnalyzer.Run(); PasswordLeakAnalyzer passwordLeakAnalyzer = new PasswordLeakAnalyzer(password); PasswordLeakAnalyzerResult passwordLeakAnalyzerResult = await passwordLeakAnalyzer.Run(); return(new FullAnalyzerResult(stringPatternAnalyzerResult, passwordLeakAnalyzerResult)); }
/// <summary> /// A <see cref="PasswordLeakAnalyzer"/> will be run asynchronously against a remote database of leaked and commonly used passwords. /// <para>As this analyzer relies on an external API to detect leaked passwords internet access will be required.</para> /// </summary> /// <returns>A <see cref="Task{TResult}"/> with the <see cref="PasswordLeakAnalyzerResult"/> containing the result of the analysis.</returns> public async Task <PasswordLeakAnalyzerResult> RunPasswordLeakAnalyzerAsync() { PasswordLeakAnalyzer passwordLeakAnalyzer = new PasswordLeakAnalyzer(password); return(await passwordLeakAnalyzer.Run()); }