Are there any methods in JavaScript that could be used to encode and decode a string using base64 encoding?
The php.js project has JavaScript implementations of many of PHP's functions. base64_encode and base64_decode are included.
base64_encode
base64_decode