BitSpace text steganography


SUBMITTED BY: Guest

DATE: Aug. 3, 2013, 5:53 a.m.

FORMAT: JavaScript

SIZE: 679 Bytes

HITS: 1472

  1. //BitSpace text masking algorithm
  2. //Ratio: about 9 spaces per each byte of hidden message
  3. //usage: BitSpace.hide(text_to_hide, container_text), BitSpace.reveal(container_text)
  4. BitSpace=eval('({hide:Yh,i,d,e){d=(h=h.split("").map(Yn){Xn.charCodeAt(0).toString(2)Z[+c]}).join("")}).join(" ")).length;e=0;Xi.replace(/ /g,Y){Xe<d?h[e++]:" "})},reveal:Yr,v,l){if(r=r.match(/[ \\u2004\\u2008]/g)){for(v=0,l="";v<r.length;v++)l+=r[v];Xl.split(" ").map(Ys){XString.fromCharCode(parseInt(sZ.indexOf(c)}).join(""),2))}).join("")}}})'.replace(/Z/g,'.split("").map(Yc){X["\\u2004","\\u2008"]').replace(/Y/g,"function(").replace(/X/g,"return "))

comments powered by Disqus