use strict;
while(1) {
print("Enter password (THIS WILL BE ECHOED TO YOUR SCREEN).\n");
chomp $passwd;
print("Password must be 6, 7 or 8 characters long.\n");
next;
}
print("Password should contain at least one non-letter.\n");
next;
}
print "Foo\n";
last;
}
print("Enter salt. This is not secret but should be a random\n",
"combination of two characters, each of which is an upper\n",
"or lower case letter, a digit, or . or /.\n");
if(! defined $result) {
print("Error in crypt.\n");
} else {
print("Password is \"$passwd\"\n",
"Send the following string: \"$result\".\n");
}