diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-07 17:24:56 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-07 17:24:56 -0400 |
commit | 6f2d6120533070ce48bbc1e12465d1f7d603aec8 (patch) | |
tree | 29ce41b0999dc9dca388de3304e801d66b547daf /Cost.hs | |
parent | d2a6fc83a8657329fc2d3d97308801dcc1c9aa48 (diff) | |
download | keysafe-6f2d6120533070ce48bbc1e12465d1f7d603aec8.tar.gz |
sharding
Diffstat (limited to 'Cost.hs')
-rw-r--r-- | Cost.hs | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -2,7 +2,6 @@ module Cost where -import Types import Entropy import Utility.HumanTime import Data.Monoid @@ -72,13 +71,6 @@ reduceEntropy (Entropy a) b = Entropy (max 0 (a - b)) -- | Things that can have entropy data UnknownPassword --- | Naive calculation of the entropy of a password. --- Does not take common passowrds and password generation patterns into --- account, so this is an overestimation of how hard a password --- is to crack. -passwordEntropy :: Password -> Entropy UnknownPassword -passwordEntropy (Password p) = Entropy $ floor $ totalEntropy p - -- | CostCalc for a brute force linear search through an entropy space -- in which each step entails paying a cost. -- |