It looks like btoa() isn't available in SS - is th...
# suitescript
c
It looks like btoa() isn't available in SS - is there a native library / api that can do base 64 encoding?
b
i used to not like recommending it since it had crappy amd support
that has recently changed
c
Thanks
I'll try this - trying to get a sign to work for an API key
b
atob and btoa are designed to work for binary data
encode and decode are more for plaintext
either way, the listed library supports the kitchen sink of base64, so you should be able to use it
c
There's an N/encode library you can use that'll do base64 encoding as well