11047Sbill /* 2*22421Sdist * Copyright (c) 1980 Regents of the University of California. 3*22421Sdist * All rights reserved. The Berkeley software License Agreement 4*22421Sdist * specifies the terms and conditions for redistribution. 5*22421Sdist */ 6*22421Sdist 7*22421Sdist #ifndef lint 8*22421Sdist char copyright[] = 9*22421Sdist "@(#) Copyright (c) 1980 Regents of the University of California.\n\ 10*22421Sdist All rights reserved.\n"; 11*22421Sdist #endif not lint 12*22421Sdist 13*22421Sdist #ifndef lint 14*22421Sdist static char sccsid[] = "@(#)makekey.c 5.1 (Berkeley) 06/06/85"; 15*22421Sdist #endif not lint 16*22421Sdist 17*22421Sdist /* 181047Sbill * You send it 10 bytes. 191047Sbill * It sends you 13 bytes. 201047Sbill * The transformation is expensive to perform 211047Sbill * (a significant part of a second). 221047Sbill */ 231047Sbill 241047Sbill char *crypt(); 251047Sbill 261047Sbill main() 271047Sbill { 281047Sbill char key[8]; 291047Sbill char salt[2]; 301047Sbill 311047Sbill read(0, key, 8); 321047Sbill read(0, salt, 2); 331047Sbill write(1, crypt(key, salt), 13); 341047Sbill return(0); 351047Sbill } 36