aboutsummaryrefslogtreecommitdiffstats
path: root/encrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'encrypt.c')
-rw-r--r--encrypt.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/encrypt.c b/encrypt.c
new file mode 100644
index 0000000..6a8ca12
--- /dev/null
+++ b/encrypt.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc, char **argv)
+{
+ srand(time(NULL));
+ char c;
+ while((c = getchar()) != EOF)
+ putchar((char)((double)rand() / (double)RAND_MAX * (double)256));
+}