Skip to content

Instantly share code, notes, and snippets.

@mangosmoothie
Last active January 4, 2018 21:57
Show Gist options
  • Save mangosmoothie/d45221a7147da217534546c03a654e0a to your computer and use it in GitHub Desktop.
Save mangosmoothie/d45221a7147da217534546c03a654e0a to your computer and use it in GitHub Desktop.
Clojure decode Base64 string
;; requires >= jdk 1.8
(defn decode-base64 [to-decode]
(String. (.decode (java.util.Base64/getDecoder) to-decode)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment