c4k-common/src/main/cljs/dda/c4k_common/base64.cljs

14 lines
262 B
Text
Raw Normal View History

2021-06-18 14:18:46 +00:00
(ns dda.c4k-common.base64
2021-06-18 13:49:43 +00:00
(:require
2021-11-05 12:51:22 +00:00
["js-base64" :as b64]
[orchestra.core :refer-macros [defn-spec]]))
2021-06-18 13:49:43 +00:00
2021-11-05 12:51:22 +00:00
(defn-spec encode string?
[input string?]
(.encode b64/Base64 input))
(defn-spec decode string?
[input string?]
(.decode b64/Base64 input))