Liking cljdoc? Tell your friends :D

buddy.sign.jwe

Json Web Encryption.

Json Web Encryption.

aead-decryptmultimethod

source

aead-encryptmultimethod

source

decode

(decode input key)
(decode
  input
  key
  {:keys [alg enc], :or {alg :dir, enc :a128cbc-hs256}, :as opts})

Decrypt the jwe compliant message and return its payload.

Decrypt the jwe compliant message and return its payload.
sourceraw docstring

decode-header

(decode-header input)

Given a message, decode the header. WARNING: This does not perform any signature validation.

Given a message, decode the header.
WARNING: This does not perform any signature validation.
sourceraw docstring

decrypt

(decrypt input key)
(decrypt
  input
  key
  {:keys [alg enc], :or {alg :dir, enc :a128cbc-hs256}, :as opts})

Decrypt the jwe compliant message and return its payload.

Decrypt the jwe compliant message and return its payload.
sourceraw docstring

encode

(encode payload
        key
        &
        [{:keys [alg enc zip header],
          :or {alg :dir, enc :a128cbc-hs256, zip false},
          :as opts}])

Encrypt then sign arbitrary length string/byte array using json web encryption.

Encrypt then sign arbitrary length string/byte array using
json web encryption.
sourceraw docstring

encrypt

(encrypt payload
         key
         &
         [{:keys [alg enc zip header],
           :or {alg :dir, enc :a128cbc-hs256, zip false},
           :as opts}])

Encrypt then sign arbitrary length string/byte array using json web encryption.

Encrypt then sign arbitrary length string/byte array using
json web encryption.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close