Module

Deno.Crypto

Package
purescript-deno
Repository
njaremko/purescript-deno

#Algorithm Source

type Algorithm :: Row Type -> Typetype Algorithm r = { name :: String | r }

#CbcAlgorithm Source

#GcmAlgorithm Source

type GcmAlgorithm = Algorithm (additionalData :: Undefined ArrayBuffer, iv :: ArrayBuffer, tagLength :: Undefined Int)

#CryptoKey Source

type CryptoKey :: Row Type -> Typetype CryptoKey r = { algorithm :: Algorithm r, extractable :: Boolean, type :: String, usages :: Array String }

#encrypt Source

#decrypt Source

#sign Source

#verify Source

#generateKey Source

generateKey :: forall r. Algorithm r -> Boolean -> Array String -> Aff (CryptoKey r)