Functions to work with armored messages
Functions to work with armored messages
(read-armored-body pem-body)Returns plain message from armored signed message
Returns plain message from armored signed message
(sign-message private-key message & {:keys [headers datetime-formatter]})Sign text message and headers data with PrivateKey.
headers - an optional map where only string and keywords are allowed (no nested maps).
time of signature is always added to headers.
datetime-formatter is optional parameter should be of ^java.time.format.DateTimeFormatter class
Returns armored text message with signature.
Sign text message and headers data with PrivateKey. `headers` - an optional map where only string and keywords are allowed (no nested maps). `time` of signature is always added to headers. `datetime-formatter` is optional parameter should be of ^java.time.format.DateTimeFormatter class Returns armored text message with signature.
(verify-message public-key armored-message)Verify armored message and headers data with PublicKey. Returns ^String message if signature for headers and message is valid. Throws exception if signature is not valid.
Verify armored message and headers data with PublicKey. Returns ^String message if signature for headers and message is valid. Throws exception if signature is not valid.
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 |