HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecrypto-token-0.1.2Haskell2010

Crypto.Token

Encrypted tokens/tickets to keep state in the client side.

  • 2 types
  • 8 values

Configuration

5 declarations
datadata Config
#

Configuration for token manager.

Instances2Eq, Show
  • Eq ConfigDefined in crypto-token-0.1.2 · Crypto.Token
  • Show ConfigDefined in crypto-token-0.1.2 · Crypto.Token
valuedefaultConfig :: Config
#

Default configuration to update secrets in 30 minutes (1,800 seconds) and token lifetime is 2 hours (7,200 seconds)

Example1 expression
defaultConfigConfig {interval = 1800, tokenLifetime = 7200}
valueinterval :: Config -> Int
#

The interval to generate a new secret and remove the oldest one in seconds.

Token manager

3 declarations
datadata TokenManager
#

The abstract data type for token manager.

Encryption and decryption

2 declarations