Subscribe
public class xor{
public static void main(String[] args)throws Exception{
byte[] b1 = new byte[(int)new java.io.File(args[0]).length()];
byte[] b2 = new byte[(int)new java.io.File(args[1]).length()];
(new java.io.FileInputStream(args[0])).read(b1);
(new java.io.FileInputStream(args[1])).read(b2);
int len = b1.length;
if(b2.length > len){
len = b2.length;
}
byte[] b3 = new byte[len];
for(int i = 0; i < len; i++){
b3[i] = (byte)(b1[i%b1.length] ^ b2[i%b2.length]);
}
(new java.io.FileOutputStream(args[2])).write(b3);
}
}
However, the works created can not easily (if at all) be proven to be derivative (without a confession or somesuch).But that misses the point. Who cares if you can encode Britney's latest song in super secret double-ROT13 or whatever. It's useless until it's rendered back into a form that is usable, and it is that same exact moment that it becomes obvious that the infringement has occured.
Clever, but it won't hold up in court. In general, technical hair splitting is not an effective way to get around the law. My guess is that anyone who distributes that third file -- they call it a "Mono" file -- along with instructions on how to recover the copyrighted file is going to be found guilty of copyright violation.
The correct way to solve this problem is through law, not technology.
« Older Brotherly Love.... | The Battle of Glorieta Pass... Newer »
This thread has been archived and is closed to new comments
posted by delmoi at 7:10 PM on March 27, 2006