/**
 * passpractice.c
 * by Garrett Reid
 *
 * Use:
 *    Simulates a shell login, then repeats your password to you.
 *    Good for practicing typing new passwords.
 **/

#include <stdio.h>
#include <stdlib.h>


main(int argc, char *argv[]){
	while(1){
		tryPass();
	}
}

void tryPass(){
	char pass[200];
	
	fprintf(stdout,"Password: ");
	
	system("stty -echo");
	fgets(pass, sizeof(pass), stdin);
	system("stty echo");
	fprintf(stdout, pass);	
}