Watermarking a java source file?

Nicholas Leippe nick at leippe.com
Fri Sep 14 06:48:48 MDT 2012


On Fri, Sep 14, 2012 at 12:23 AM, Ryan Byrd <ryanbyrd at gmail.com> wrote:
>> b) as an id, so you can track who distributed copies when they weren't
>> supposed to, such as (conceivably) audio/video at a movie theater
>
> you could tack on different amounts of whitespace to encode an id at
> the ends of some of the source code lines. most people probably
> wouldn't notice but you would be able to extract the id later on...

Only from source code, only if not cleaned first via a
pretty-printer/indenter--not from any resulting binary.

But, sure, you could do so some steganography via tabs/spaces/newlines
hidden in the whitespace and/or comments somewhere. It just might not
survive to distribution, and doesn't help you prevent resulting
binaries from being produced and distributed.


More information about the PLUG mailing list