Skip to content

Instantly share code, notes, and snippets.

@irl
Created October 31, 2019 20:51
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 irl/f09c68df1bdb7e5d8157993d2bca1ffa to your computer and use it in GitHub Desktop.
Save irl/f09c68df1bdb7e5d8157993d2bca1ffa to your computer and use it in GitHub Desktop.
file scrambler
#include <stdio.h>
int
main(int argc, char **argv)
{
int c, r;
r = 0;
while ((c = getc(stdin)) != EOF) {
r = (13 * r + 249) & 0xff;
putc(c ^ r, stdout);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment