Be careful what you copy: Invisibly inserting usernames into text
1–10 of 200 posts
Re: Be careful what you copy: Invisibly inserting usernames into text
#2I'm trying to think of what else could be done with the encryption / description, but tracking is a really effective use case.
Could probably encode some other secret messages in there, make a blog post about cheese include a hash to a pastebin.
It also reminds me of the importance of having strong validation around things like usernames, because if I had a username that looked official but contained an invisible character... Related: ICANN explicitly forbids domain names from including zero-width space.
Re: Be careful what you copy: Invisibly inserting usernames into text
#3Re: Be careful what you copy: Invisibly inserting usernames into text
#4Re: Be careful what you copy: Invisibly inserting usernames into text
#5 const zeroPad = num => ‘00000000’.slice(String(num).length) + num;
What a bad way to declare a function. Starting with the word 'function' will make the code much more readable. Arrow functions are supposed to be used as a small callbacks, not to obfuscate the meaning of the code.Re: Be careful what you copy: Invisibly inserting usernames into text
#6const zeroPad = num => ‘00000000’.slice(String(num).length) + num; What a bad way to declare a function. Starting with the word 'function' will make the code much more readable. Arrow functions are supposed to be used as a small callbacks, not to obfuscate the meaning of the code.
Re: Be careful what you copy: Invisibly inserting usernames into text
#7Re: Be careful what you copy: Invisibly inserting usernames into text
#8Re: Be careful what you copy: Invisibly inserting usernames into text
#9Also because of the overhead here and the fact that you will want the signature to occur at regular intervals a better compression scheme than 0=>char1 1=>char2 is needed. Combining zero width chars and homoglyph substitution* can produce codings which hold signed usernames in only a few characters.
There are other, far more interesting ways, to watermark text than this that are both harder (to impossible) to detect that produce better results.
*https://www.researchgate.net/publication/308044170_Content-p...
P.S. It's nice to see people publish conference papers on this stuff. I always had to hide it because we actually used it.
Re: Be careful what you copy: Invisibly inserting usernames into text
#10Where can I find a full list of zero-width characters?