clientsession-0.4.0.2: 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.

defaultKeyFile :: StringSource

The default key file.

Actual encryption/decryption

encryptSource

Arguments

:: ByteString

key

-> ByteString

data

-> ByteString