Liking cljdoc? Tell your friends :D

clj-branca

cljdoc badge

This library implements encoding and decoding Branca tokens in Clojure.

Quickstart

(require '[clj-branca.core :as branca])

(def secret-key "supersecretkeyyoushouldnotcommit")
(def message "Hello, world!")

(branca/encode secret-key message)
;; "XZ69WpRTqZgEOqCJqaOK4iOKGLkg505VSASQ8MMGWs3mn1p6U81FvB5rSLpKlIjkZTUIBC6KiHIboz"

(String. (branca/decode secret-key "XZ69WpRTqZgEOqCJqaOK4iOKGLkg505VSASQ8MMGWs3mn1p6U81FvB5rSLpKlIjkZTUIBC6KiHIboz"))
;; "Hello, world!"

Status

Status: Pre-release

What needs to happen before a release?

  • [x] Fix TODOs in the codebase
  • [x] Add tests
  • [x] Write docstrings
  • [x] Write user guide
  • [x] Figure out how to deploy deps.edn projects
  • [x] Release clj-base62
  • [x] Publish this repo
  • [ ] Add a license

License

Copyright Miikka Koskinen

Can you improve this documentation?Edit on sourcehut

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close