Skip to content

Instantly share code, notes, and snippets.

@tvanhens
Created August 24, 2016 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvanhens/d9508a0956d868e75012f6598b4ace8f to your computer and use it in GitHub Desktop.
Save tvanhens/d9508a0956d868e75012f6598b4ace8f to your computer and use it in GitHub Desktop.
user> (import '[java.util Base64])
;; java.util.Base64
user> (.encodeToString (Base64/getEncoder) (byte-array (map byte "Hello")))
;; "SGVsbG8="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment