Safe Haskell | None |
---|---|
Language | Haskell2010 |
Main module generating passwords.
- type WordSet = Set Text
- type WordList = Vector Text
- resolveSymbolicLink :: FilePath -> IO FilePath
- readDict :: FilePath -> IO WordSet
- dictFiles :: FilePath -> IO [FilePath]
- readDicts :: [FilePath] -> IO (Set Text)
- readDictDir :: FilePath -> IO (Set Text)
- defaultDictionary :: FilePath
- randomPassword :: WordList -> Int -> RVar Text
- randomPasswordStrength :: Vector a -> Int -> Double
- numSymbols :: Int
- numNumericSeparators :: Int
- randomSeparator :: RVar Text
- randomNumericSeparator :: RVar Text
- (|||) :: (t -> Bool) -> (t -> Bool) -> t -> Bool
- symbolChars :: Vector Char
- randomSymbolSeparator :: RVar Text
Documentation
type WordSet = Set Text Source
Explanatory type alias for the type of wordlists during preprocessing.
type WordList = Vector Text Source
Explanatory type alias for immutable, preprocessed wordlist used by random number generator.
Reading inputs
resolveSymbolicLink :: FilePath -> IO FilePath Source
Try to resolve symbolic link chain for given filename.
readDict :: FilePath -> IO WordSet Source
Reads a dict format to get a list of unique words without any special chars.
defaultDictionary :: FilePath Source
Filename for default dictionary (should be command line argument or default glob.)
randomPassword :: WordList -> Int -> RVar Text Source
Pick a random password, given a words list, and a number of words it will contain.
randomPasswordStrength :: Vector a -> Int -> Double Source
Estimate strength of random password with given inputs.
numSymbols :: Int Source
Number of characters within alphabet.
Random separators
randomSeparator :: RVar Text Source
Randomly pick a word separator as a two-digit number, or a symbol character.
randomNumericSeparator :: RVar Text Source
Two-digit number as a separator 10^2 = 6.6 bits of entropy.
symbolChars :: Vector Char Source
List of symbol and punctuation characters in ASCII Should be 5 bits of entropy
randomSymbolSeparator :: RVar Text Source
Text with random symbol character, 5 bits of entropy