clientsession-0.6.0: Store session data in a cookie.

Web.ClientSession

Contents

Synopsis

Automatic key generation

getKeySource

Arguments

:: FilePath

File name where key is stored.

-> IO Key

The actual key.

Get a key from the given text file.

If the file does not exist a random key will be generated and stored in that file.

embedKey :: FilePath -> Q ExpSource

Embed a key from the given text file into haskell source.

Eliminates overhead of reading key file with each request.

defaultKeyFile :: StringSource

The default key file.

Actual encryption/decryption

encryptSource

Arguments

:: ByteString

key

-> ByteString

data

-> ByteString