6/8/2023 0 Comments Strongpassword genoratorThere are various options you can pass to the application via the dedicated objects. Live exampleĪ live project based on this application you can find at: Strong password live Options It will generate some passwords according to the default options, having them sorted descending by the score and time and present them into the console output. You can find a complete example with all the explanations here: Strong password example. Having score and/or decode time, you can sort the list of passwords according to your needs and present them to the user. You have now a list of passwords that you can use or, optionally:Ĭompute score: var scorer = StrongPasswordScorerFactory.make() passwords.forEach(password -> puteScore(options, password))Įstimate decode time: var estimator = StrongPasswordEstimatorFactory.make() passwords.forEach(password -> estimator.estimateDecodeTime(options, password)) Once you have the options prepared, is time to instantiate the generator: var generator = StrongPasswordGeneratorFactory.make() Īll left now is to generate the passwords based on the provided options: var passwords = generator.generatePasswords(options) The keys and their meaning are described at the end of this section. Īdditionally, you might want to use options that are based on a file ( StrongPasswordFileOptions) or by a map ( StrongPasswordMapOptions). Instantiate the options that you want to use, such as the default ones: var options = new StrongPasswordOptions(). Setup your module-info.java to use the strong password module: requires The following script shows a basic usage of all the components mentioned above and standard options:
0 Comments
Leave a Reply. |