Base64 encode data: Difference between revisions

no edit summary
No edit summary
Line 2:
Write an algorithm that converts a byte array or string, and output that base64'd string.
Try to base64'd any string and if possible [http://rosettacode.org/favicon.ico this favicon]
<!--should this page explain how the base64 algorithm/spec works?
 
=={{header|JavaScript}}==
<lang JavaScript>(function(){function stringToArrayUnicode(str){for(var i=0,l=str.length,n=[];i<l;i++)n.push(str.charCodeAt(i));return n;}
Anonymous user