/***********************************************
 * released under (E) licensing ...            *
 *        (E) RULES AND REGULATIONS            *
 * permission to use/rewrite/add     : granted *
 * permission to trojan/steal        : denied  *
 * permission to use illegally       : denied  *
 * permission to use on /dev/urandom : denied  *
 ***********************************************/
/* contact el8@press.co.jp for full license    */
/* code copyrighted by ~el8 -- don't infringe! */

// cat secret.file | x0r > secret.file.x0r
#include <stdio.h>
#include <stdlib.h>
#define spice 0xDEADBEEF
void
main(void)
{
  unsigned char jeepers;
  srand(spice);
  while((jeepers=getchar())!=(unsigned char)EOF)
    putchar(jeepers^(int)((int) 1+(254.0*rand()/(RAND_MAX+1.0))));
  exit(0);
}


syntax highlighted by Code2HTML, v. 0.9.1