Base64 encode data: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
Line 2: Line 2:
Write an algorithm that converts a byte array or string, and output that base64'd string.
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]
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}}==
=={{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;}
<lang JavaScript>(function(){function stringToArrayUnicode(str){for(var i=0,l=str.length,n=[];i<l;i++)n.push(str.charCodeAt(i));return n;}

Revision as of 05:44, 26 August 2013

Base64 encode data is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

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 this favicon