Browsers have helpers function to encode and decode base64 :
btoa: base64 encodeatob: base64 decode
> btoa('Hello world')
"SGVsbG8gV29ybGQgIQ=="
> atob('SW4gR29kIFdlIFRydXN0ICE=')
"In God We Trust !"
Enjoyed this post?
If you found this helpful, consider sharing it or leaving a kudo!
0 kudos