How can I use btoa and atob methods in creator?

hi,
I am trying to encode a string to base 64, and back and want to know how to do it in creator. also, do I need to first make a character array of the string to feed to the encoding function. if so, I would also like to know how to do that.
thanks!