home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
minnie.tuhs.org
/
unixen.tar
/
unixen
/
PDP-11
/
Trees
/
V7
/
usr
/
src
/
cmd
/
makekey.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1979-01-10
|
282 b
|
20 lines
/*
* 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);
}