Created
October 31, 2019 20:51
-
-
Save irl/f09c68df1bdb7e5d8157993d2bca1ffa to your computer and use it in GitHub Desktop.
file scrambler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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