Json Web Signature implementation.
Json Web Signature implementation.
(decode input pkey)(decode input pkey {:keys [alg] :or {alg :hs256}})Given a signed message, verify it and return the decoded payload.
Given a signed message, verify it and return the decoded payload.
(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.
(encode payload pkey & [{:keys [alg header] :or {alg :hs256} :as opts}])Sign arbitrary length string/byte array using json web token/signature.
Sign arbitrary length string/byte array using json web token/signature.
(sign payload pkey & [{:keys [alg header] :or {alg :hs256} :as opts}])Sign arbitrary length string/byte array using json web token/signature.
Sign arbitrary length string/byte array using json web token/signature.
(unsign input pkey)(unsign input pkey {:keys [alg] :or {alg :hs256}})Given a signed message, verify it and return the decoded payload.
Given a signed message, verify it and return the decoded payload.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |