packages feed

clientsession 0.0.0 → 0.0.1

raw patch · 2 files changed

+18/−4 lines, 2 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

+ Web.ClientSession: class (AESKeyIndirection a) => AESKey a
+ Web.ClientSession: defaultKeyFile :: String
+ Web.ClientSession: type Word256 = LargeKey Word64 Word192

Files

Web/ClientSession.hs view
@@ -1,7 +1,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE TypeSynonymInstances #-} ------------------------------------------------------------ |+-- -- Module        : Web.ClientSession -- Copyright     : Michael Snoyman -- License       : BSD3@@ -16,12 +16,16 @@ module Web.ClientSession     ( -- * Automatic key generation       getKey+    , defaultKeyFile     , getDefaultKey       -- * Actual encryption/decryption     , encrypt     , decrypt       -- * Classes     , IsByteString (..)+      -- * Key types and classes.+    , Word256+    , AESKey     ) where  import Codec.Encryption.AES (AESKey)@@ -49,9 +53,13 @@     toByteString = BSU.fromString     fromByteString = BSU.toString +-- | The default key file.+defaultKeyFile :: String+defaultKeyFile = "client_session_key.aes"+ -- | Simply calls 'getKey' \"client_session_key.aes\" getDefaultKey :: IO Word256-getDefaultKey = getKey "client_session_key.aes"+getDefaultKey = getKey defaultKeyFile  -- | Get a 256-bit key from the given text file. -- If the file does not exist, or did not contain enough bits,
clientsession.cabal view
@@ -1,5 +1,5 @@ name:            clientsession-version:         0.0.0+version:         0.0.1 license:         BSD3 license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>@@ -11,8 +11,14 @@ stability:       stable cabal-version:   >= 1.2 build-type:      Simple+homepage:        http://github.com/snoyberg/clientsession/tree/master  library-    build-depends:   base, Crypto, dataenc, bytestring, random, utf8-string+    build-depends:   base >=4 && <5,+                     Crypto,+                     dataenc,+                     bytestring,+                     random,+                     utf8-string     exposed-modules: Web.ClientSession     ghc-options:     -Wall