paseto-0.1.1.1: Platform-Agnostic Security Tokens
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.Paseto.PreAuthenticationEncoding

Description

Synopsis

Documentation

encode :: [ByteString] -> ByteString Source #

Encode a multipart message using Pre-Authentication Encoding (PAE) as defined in the PASETO spec.

newtype DecodingError Source #

Error decoding a PAE-encoded message.

decode :: ByteString -> Either DecodingError [ByteString] Source #

Decode a multipart message which has been encoded using Pre-Authentication Encoding (PAE) as defined in the PASETO spec.