diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-07 12:09:53 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-07 12:09:53 -0400 |
commit | 6205bbac7abc919371a5e7af9e4ba1a8d70de85e (patch) | |
tree | 668f3247182d01f025ce9122f6b495def240eb71 /Types.hs | |
parent | 016877aa55764d14af3c16645d64fd95bf6a2da1 (diff) | |
download | keysafe-6205bbac7abc919371a5e7af9e4ba1a8d70de85e.tar.gz |
basic password entropy calculation
Diffstat (limited to 'Types.hs')
-rw-r--r-- | Types.hs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving #-} module Types where @@ -8,10 +8,12 @@ import Raaz.Core.Encode import Data.Monoid import Data.Word import Data.Time.Clock +import Data.String import Text.Read -- | A password used to encrypt a key stored in keysafe. newtype Password = Password B.ByteString + deriving (IsString) -- | A name associated with a key stored in keysafe. newtype Name = Name B.ByteString |