Skip to content

Instantly share code, notes, and snippets.

@plugnburn
Created August 12, 2013 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugnburn/6208945 to your computer and use it in GitHub Desktop.
Save plugnburn/6208945 to your computer and use it in GitHub Desktop.
BitSpace text steganography bookmarklet
//BitSpace bookmarklet
//Just add the below URL to your bookmark bar
//To hide the text into your input, focus on your input field and call the bookmarklet, then input the text to hide
//To reveal the text, select the text in non-input field and call the bookmarklet
javascript:(function(z){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 ")),z=document.activeElement;z.value?z.value=BitSpace.hide(prompt("Text to hide"),z.value):alert(BitSpace.reveal(getSelection()+""))})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment