diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-11-06 11:37:14 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-11-06 11:37:14 -0400 |
commit | 9e0ca8324a28f38acc0deefa23fb056830fecf0a (patch) | |
tree | 0b570a4b815a746d6a63a8951b1d00e02a4dcd1b /keysafe.hs | |
parent | c5dd152a0b1ed45ed40c60f3bcf004fe7edb6ff0 (diff) | |
download | keysafe-9e0ca8324a28f38acc0deefa23fb056830fecf0a.tar.gz |
Better suggestion when user is having difficulty thinking of a strong enough password.
This commit was sponsored by Ignacio on Patreon.
Diffstat (limited to 'keysafe.hs')
-rw-r--r-- | keysafe.hs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -170,7 +170,12 @@ backup cmdline ui tunables distinguisher (secretkeysource, secretkey) = do let mincost = Dollars 100000 if crackcost < mincost then do - showError ui $ "Weak password! It would cost only " ++ show crackcost ++ " to crack the password. Please think of a better one. More words would be good.." + showError ui $ unlines + [ "Weak password! It would cost only " ++ show crackcost ++ " to crack the password." + , "Please think of a better one." + , "" + , "Suggestion: Pick 3 or 4 unrelated words for a strong password, like \"correct horse battery staple\"" + ] promptpassword name else do (thisyear, _, _) <- toGregorian . utctDay |