What is the best way to encode a string to base64


#1

Hello ,Im using a rest service and have to send base64 encoded password to rest service.What is the best way to encode a string in ionic 3 ?


#2

That’s a really weird requirement that makes me moderately concerned about the design of said service, but I guess the answer to your question is btoa.


#3

thanks ! I was looking way from a angular libraries.