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

12 lines
177 B
Text
Raw Normal View History

2021-06-18 13:54:59 +00:00
(ns dda.c4k_common.base64
2021-06-18 13:49:43 +00:00
(:require
["js-base64" :as b64]))
(defn encode
[string]
(.encode b64/Base64 string))
(defn decode
[string]
(.decode b64/Base64 string))