rogue

Ken Arnold's Rogue
git clone https://git.woozle.org/neale/rogue.git

Neale Pickett  ·  2011-10-13

ropen.c

 1/*
 2 * print out an encrypted password on the standard output
 3 *
 4 * @(#)ropen.c	1.4 (Berkeley) 02/05/99
 5 */
 6#include <stdio.h>
 7
 8int
 9main(void)
10{
11    static char buf[80];
12
13    fprintf(stderr, "Password: ");
14    fgets(buf, 80, stdin);
15    buf[strlen(buf) - 1] = '\0';
16    printf("%s\n", crypt(buf, "mT"));
17}