Are there any methods in JavaScript that could be used to encode and decode a string using base64 encoding?
I'd rather use the bas64 encode/decode methods from CryptoJS, the most popular library for standard and secure cryptographic algorithms implemented in JavaScript using best practices and patterns.