Compact high level message signing implementation.
It has high influence by django's cryptographic library and json web signature/encryption but with focus on have a compact representation. It's build on top of fantastic ptaoussanis/nippy serialization library.
This singing implementation is not very efficient with small messages, but is very space efficient with big messages.
The purpose of this implementation is for secure message transfer, it is not really good candidate for auth token because of not good space efficiency for small messages.
Compact high level message signing implementation. It has high influence by django's cryptographic library and json web signature/encryption but with focus on have a compact representation. It's build on top of fantastic ptaoussanis/nippy serialization library. This singing implementation is not very efficient with small messages, but is very space efficient with big messages. The purpose of this implementation is for secure message transfer, it is not really good candidate for auth token because of not good space efficiency for small messages.
List of supported signing algorithms
List of supported signing algorithms
(decode data
key
&
[{:keys [alg compress max-age] :or {alg :hs256 compress true}}])
Given a signed message, verify it and return the decoded data.
Given a signed message, verify it and return the decoded data.
(encode data key & [{:keys [alg compress] :or {alg :hs256 compress true}}])
Sign arbitrary length string/byte array using compact sigining method.
Sign arbitrary length string/byte array using compact sigining method.
(sign data key & [{:keys [alg compress] :or {alg :hs256 compress true}}])
Sign arbitrary length string/byte array using compact sigining method.
Sign arbitrary length string/byte array using compact sigining method.
(unsign data
key
&
[{:keys [alg compress max-age] :or {alg :hs256 compress true}}])
Given a signed message, verify it and return the decoded data.
Given a signed message, verify it and return the decoded data.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close