/* $Header:makekey.c 12.0$ */
/* $ACIS:makekey.c 12.0$ */
/* $Source: /ibm/acis/usr/src/usr.lib/RCS/makekey.c,v $ */

#ifndef lint
static char *rcsid = "$Header:makekey.c 12.0$";
#endif

/*
 * Copyright (c) 1980 Regents of the University of California.
 * All rights reserved.  The Berkeley software License Agreement
 * specifies the terms and conditions for redistribution.
 */

#ifndef lint
char copyright[] =
"@(#) Copyright (c) 1980 Regents of the University of California.\n\
 All rights reserved.\n";
#endif not lint

#ifndef lint
static char sccsid[] = "@(#)makekey.c	5.1 (Berkeley) 6/6/85";
#endif not lint

/*
 * 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);
}
