buddy.sign.jwe
Json Web Encryption
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
decode-header
(decode-header input)
Given a message, decode the header. WARNING: This does not perform any signature validation
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
encode
(encode payload key)
(encode payload key {:keys [alg enc zip header], :or {alg :dir, enc :a128cbc-hs256, zip false}})
Encrypt then sign arbitrary length string/byte array using json web encryption
encrypt
(encrypt payload key)
(encrypt payload key {:keys [alg enc zip header], :or {alg :dir, enc :a128cbc-hs256, zip false}})
Encrypt then sign arbitrary length string/byte array using json web encryption