projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70db2cb
)
Bell 32V development
author
Tom London
<tbl@research.uucp>
Mon, 11 Dec 1978 00:32:43 +0000
(19:32 -0500)
committer
Tom 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]
patch
|
blob
diff --git a/usr/src/cmd/makekey.c
b/usr/src/cmd/makekey.c
new file mode 100644
(file)
index 0000000..
1640e51
--- /dev/null
+++ b/
usr/src/cmd/makekey.c
@@ -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);
+}