summaryrefslogtreecommitdiffhomepage
path: root/Cost.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-07 17:24:56 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-07 17:24:56 -0400
commit6f2d6120533070ce48bbc1e12465d1f7d603aec8 (patch)
tree29ce41b0999dc9dca388de3304e801d66b547daf /Cost.hs
parentd2a6fc83a8657329fc2d3d97308801dcc1c9aa48 (diff)
downloadkeysafe-6f2d6120533070ce48bbc1e12465d1f7d603aec8.tar.gz
sharding
Diffstat (limited to 'Cost.hs')
-rw-r--r--Cost.hs8
1 files changed, 0 insertions, 8 deletions
diff --git a/Cost.hs b/Cost.hs
index ba3017b..8a47fcc 100644
--- a/Cost.hs
+++ b/Cost.hs
@@ -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.
--