BSD 4_2 release
[unix-history] / usr / src / usr.lib / makekey.c
CommitLineData
31cef89c 1static char *sccsid = "@(#)makekey.c 4.1 (Berkeley) 10/1/80";
6b0e43ed
BJ
2/*
3 * You send it 10 bytes.
4 * It sends you 13 bytes.
5 * The transformation is expensive to perform
6 * (a significant part of a second).
7 */
8
9char *crypt();
10
11main()
12{
13 char key[8];
14 char salt[2];
15
16 read(0, key, 8);
17 read(0, salt, 2);
18 write(1, crypt(key, salt), 13);
19 return(0);
20}