Class DictionaryBasedGenerator

    • Field Detail

      • m_DictionaryFile

        protected PlaceholderFile m_DictionaryFile
        the dictionary file to use.
      • m_Dictionary

        protected List<String> m_Dictionary
        the dictionary entries.
      • m_Passwords

        protected List<String> m_Passwords
        the current passwords to output.
      • m_Index

        protected int m_Index
        the current index in the dictionary.
    • Constructor Detail

      • DictionaryBasedGenerator

        public DictionaryBasedGenerator​(PlaceholderFile dictionaryFile)
        Initializes the generator.
        Parameters:
        dictionaryFile - the dictionary to use
      • DictionaryBasedGenerator

        public DictionaryBasedGenerator​(PlaceholderFile dictionaryFile,
                                        DictionaryBasedGenerator.Variation[] variations)
        Initializes the generator.
        Parameters:
        dictionaryFile - the dictionary to use
        variations - the variations of the words in the dictionary to generate, can be null
      • DictionaryBasedGenerator

        public DictionaryBasedGenerator​(List<String> dictionary)
        Initializes the generator.
        Parameters:
        dictionary - the words to use
      • DictionaryBasedGenerator

        public DictionaryBasedGenerator​(List<String> dictionary,
                                        DictionaryBasedGenerator.Variation[] variations)
        Initializes the generator.
        Parameters:
        dictionary - the words to use
        variations - the variations of the words in the dictionary to generate, can be null