You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
(ns dda.c4k-keycloak.base64
|
|
(:import (java.util Base64)))
|
|
|
|
(defn encode
|
|
[string]
|
|
(.encodeToString
|
|
(Base64/getEncoder)
|
|
(.getBytes string "UTF-8")))
|
|
|
|
(defn decode
|
|
[string]
|
|
(String.
|
|
(.decode (Base64/getDecoder) string)
|
|
"UTF-8")) |