elocrypt-0.3.2: Generate easy-to-remember, hard-to-guess passwords

Copyright(c) Sean Gillespie, 2015
LicenseOtherLicense
MaintainerSean Gillespie <sean@mistersg.net>
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Elocrypt.Trigraph

Description

Generate a letter frequency trigraph, based on a dictionary

Synopsis

Documentation

findFrequency :: String -> Maybe [Rational] Source

Search for the character frequencies based on the first a two-letter string

frequencies :: [(String, [Rational])] Source

A map of character frequencies, based on a dictionary. The key is a two-letter string, and the value is a list of probabilities (a-z). It's form is:

[("aa", [2,0,3,0,0,0,1,0,0,0,0,1,1,1,0,0,0,3,2,0,0,0,0,0,0,0]),
...
 ("zz", [7,0,0,0,1,0,0,0,7,0,0,17,0,0,2,0,0,0,0,0,0,0,1,0,5,0])]