gamgee-1.2.2: Tool for generating TOTP MFA tokens.
Safe HaskellNone
LanguageHaskell2010

Gamgee.Effects.Crypto

Description

Cryptographic effect for securing tokens

Synopsis

Effect

data Crypto m a where Source #

Effect for encrypting and decrypting secrets

Constructors

Encrypt

Encrypts a secret with an optional password

Fields

Decrypt

Decrypt a secret with an optional password

Fields

  • :: Text

    Base64 encoded IV

  • -> Text

    Base64 encoded encrypted secret

  • -> Text

    The password for decryption

  • -> Crypto m Text

    Decrypted secret

Instances

Instances details
type DefiningModule (Crypto :: k -> Type -> Type) Source # 
Instance details

Defined in Gamgee.Effects.Crypto

type DefiningModule (Crypto :: k -> Type -> Type) = "Gamgee.Effects.Crypto"

Programs

Interpretations