buddy.sign.jws
Json Web Signature implementation
decode
(decode input pkey)
(decode input pkey {:keys [alg], :or {alg :hs256}})
Given a signed message, verify it and return the decoded payload
decode-header
(decode-header input)
Given a message, decode the header
WARNING: This does not perform any signature validation
encode
(encode payload pkey)
(encode payload pkey {:keys [alg header], :or {alg :hs256}, :as opts})
Sign arbitrary length string/byte array using json web token/signature
sign
(sign payload pkey)
(sign payload pkey {:keys [alg header], :or {alg :hs256}, :as opts})
Sign arbitrary length string/byte array using json web token/signature
unsign
(unsign input pkey)
(unsign input pkey {:keys [alg], :or {alg :hs256}})
Given a signed message, verify it and return the decoded payload