c4k-common/src/main/cljs/dda/c4k_common/base64.cljs
2021-11-05 13:51:22 +01:00

13 lines
262 B
Clojure

(ns dda.c4k-common.base64
(:require
["js-base64" :as b64]
[orchestra.core :refer-macros [defn-spec]]))
(defn-spec encode string?
[input string?]
(.encode b64/Base64 input))
(defn-spec decode string?
[input string?]
(.decode b64/Base64 input))