Base64 encode data: Difference between revisions

(I can't believe this task hasn't even done yet!)
 
Line 5:
=={{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;}
function generateOnesByLength(n){//Attempts to generate a binary number full of ones given a length.. they don't redefine each other that much.
they don't redefine each other that much.
var x=0;
for(var i=0;i<n;i++){
Anonymous user