packages feed

pwstore-cli 0.1 → 0.2

raw patch · 3 files changed

+15/−5 lines, 3 filesdep ~pwstore-fast

Dependency ranges changed: pwstore-fast

Files

NEWS view
@@ -1,6 +1,15 @@ pwstore-cli =========== +Version 0.2+-----------++  * Changed category "Crypto" to "Cryptography".+  * Require at least pwstore-fast version 2.2 to avoid a space leak+    present in earlier versions.+  * Use Data.Text.Encoding.decodeUtf8 instead of the deprecated+    function decodeASCII.+ Version 0.1 ----------- 
pwstore-cli.cabal view
@@ -1,17 +1,18 @@ name:                pwstore-cli-version:             0.1+version:             0.2 synopsis:            Command line interface for the pwstore library description:   This program provides a command line interface for Peter Scott's   pwstore library.  Specifically, it is possible to generate,   validate, and strengthen passwords hashed in the pwstore format. homepage:            http://darcsden.com/rycee/pwstore-cli/+bug-reports:         http://darcsden.com/rycee/pwstore-cli/issues license:             GPL-3 license-file:        LICENSE author:              Robert Helgesson maintainer:          robert@rycee.net stability:           Experimental-category:            Crypto, Console+category:            Cryptography, Console build-type:          Simple cabal-version:       >=1.4 extra-source-files:  README NEWS tests/test.hs@@ -28,6 +29,6 @@   build-depends:     base < 5, bytestring, text, cmdargs >= 0.7 && < 0.8    if flag(fast)-     build-depends:   pwstore-fast >= 2.0 && < 3.0+     build-depends:   pwstore-fast >= 2.2 && < 3.0   else      build-depends:   pwstore-purehaskell >= 2.0 && < 3.0
src/pwstore.hs view
@@ -148,7 +148,7 @@      password <- fmap T.encodeUtf8 $ getPassword True      salt' <- maybe genSaltIO (return . makeSalt . T.encodeUtf8 . T.pack) salt -     T.putStrLn . T.decodeASCII $ makePasswordSalt password salt' strength+     T.putStrLn . T.decodeUtf8 $ makePasswordSalt password salt' strength runMode Verify {..} =   do hash' <- strToHash hash      password <- getPassword False@@ -158,7 +158,7 @@        else putStrLn "bad password" runMode Strengthen {..} =   do hash' <- strToHash hash-     T.putStrLn . T.decodeASCII $ strengthenPassword hash' strength+     T.putStrLn . T.decodeUtf8 $ strengthenPassword hash' strength  main :: IO () main = getProgName >>= cmdArgs . optAll >>= runMode