wordpass 0.4.1.0 → 0.4.2.0
raw patch · 4 files changed
+16/−7 lines, 4 filesdep ~base
Dependency ranges changed: base
Files
- README.md +2/−2
- WordPass.hs +7/−3
- changelog +4/−0
- wordpass.cabal +3/−2
README.md view
@@ -15,5 +15,5 @@ Using just four words from default English dictionary of ~50k words will give approximately 90 bits of entropy. Lucky speakers of languages with-rich inflection like Polish (over 3 million words) can easily up this to-over 110 bits of entropy.+rich inflection like Polish (over 3 million word variants) can easily up+this to over 110 bits of entropy.
WordPass.hs view
@@ -137,13 +137,17 @@ -- | Pick specific wordlist. defineFlag "l:wordlist" ("" :: FilePath) "Select particular dictionary (filepath)." +-- | Pick specific wordlist.+defineFlag "t:pseudorandom" (False :: Bool) "Generate passwords using StdRandom generator, instead of DevRandom. (Faster, but less safe. Good for testing."++-- | Fake flag to avoid GHC losing the last instance declaration+defineFlag "fakeflag" (False :: Bool) "This flag does nothing and is never used"++ -- | Read wordlist given by explict filepath, or search for all wordlists in a given directory. selectWordList :: FilePath -> FilePath -> IO WordList selectWordList "" dir = readDictDir dir selectWordList filename _ = readDict filename---- | Pick specific wordlist.-defineFlag "r:pseudorandom" (False :: Bool) "Generate passwords using StdRandom generator, instead of DevRandom. (Faster, but less safe. Good for testing." main = do $initHFlags "WordPass - dictionary-based password generator" dictWords <- (V.fromList . Set.toList) `fmap` selectWordList flags_wordlist flags_directory
changelog view
@@ -1,5 +1,9 @@ -*-Changelog-*- +0.4.2.0 Jul 2014+ * Workaround bug in GHC 7.8 that misses last instance during Template+ Haskell enumeration of class instances in HFlags.+ 0.4.1.0 May 2014 * Various esthetic fixes.
wordpass.cabal view
@@ -1,5 +1,5 @@ name: wordpass-version: 0.4.1.0+version: 0.4.2.0 synopsis: Dictionary-based password generator description: This script reads dict word lists and generates word-based passwords. Not unlike <http://xkcd.com/936/ Xkcd>.@@ -27,7 +27,7 @@ main-is: WordPass.hs other-modules: Data.Random.RVar.Enum, Data.Random.Vector, Data.Random.Choice other-extensions: OverlappingInstances, MultiParamTypeClasses, FlexibleInstances- build-depends: base >=4.6 && <4.7,+ build-depends: base >=4.6 && <4.8, text >=1.1 && <1.2, containers >=0.5 && <0.6, random-fu >=0.2 && <0.3,@@ -38,5 +38,6 @@ deepseq >= 1.3 && <1.4, filepath >= 1.3 && <1.4, hflags >= 0.4 && <0.5+ ghc-options: -O3 -- hs-source-dirs: default-language: Haskell2010