xxxxxxxxxx
57
coded="RGVzY3JpYmUgYSBub24tY3liZXIgaG9iYnkgeW91J3JlIFJFQUxMWSBwYXNzaW9uYXRlIGFib3V0IGFuZCBleHBsYWluIGl0LiBQbGVhc2UgZG9uJ3QgZW5jb2RlIHlvdXIgbWVzc2FnZSBiYWNrLi4udGhhdCdzIG1vcmUgd29yayBmb3IgdXMgOik="
noCaps="zpmgubtligainkgelxwzaulibuleslulibhcgugjbllvdgbzcniriudhhddzvcmgdyaymbgdgik"
noLower="RGVY3JYUYSB24Y3ZXIG9YW91J3JIFJFQUMWSBYXNW9YXRIGF3V0IGFZCBHBYWIG0LBQGV2UZG9J3QZW52RIHXIWV2FZSBYWNL4GCIG1U29B3IXMO"
var decoded="";
function setup() {
createCanvas(400, 400);
removeCaps();
shift(noLower);
}
// Remove UpperCase?
function removeCaps(){
for(var i=0; i<coded.length; i++)
{
if(coded[i].toUpperCase()!=coded[i])
{
decoded=decoded+coded[i];
}
}
console.log(decoded);
}
// Remove LowerCase?
function removeCaps(){
for(var i=0; i<coded.length; i++)
{
if(coded[i].toUpperCase()==coded[i])
{
decoded=decoded+coded[i];
}
}
console.log(decoded);
}
function shift(instr)
{
shiftstr=instr;
for(j=0; j<26; j++){
shiftstr=instr;
newstr="";
for(var i=0; i<instr.length; i++)
{
newstr=newstr + char(unchar(instr[i])+j);
}
console.log(newstr);
//console.log(unchar('a'))
}
}