Bell 32V development
authorTom London <tbl@research.uucp>
Mon, 11 Dec 1978 00:32:43 +0000 (19:32 -0500)
committerTom London <tbl@research.uucp>
Mon, 11 Dec 1978 00:32:43 +0000 (19:32 -0500)
Work on file usr/src/cmd/makekey.c

Co-Authored-By: John Reiser <jfr@research.uucp>
Synthesized-from: 32v

usr/src/cmd/makekey.c [new file with mode: 0644]

diff --git a/usr/src/cmd/makekey.c b/usr/src/cmd/makekey.c
new file mode 100644 (file)
index 0000000..1640e51
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * You send it 10 bytes.
+ * It sends you 13 bytes.
+ * The transformation is expensive to perform
+ * (a significant part of a second).
+ */
+
+char   *crypt();
+
+main()
+{
+       char key[8];
+       char salt[2];
+       
+       read(0, key, 8);
+       read(0, salt, 2);
+       write(1, crypt(key, salt), 13);
+       return(0);
+}