Genezzo

 view release on metacpan or  search on metacpan

lib/Genezzo/GenDBI.pm  view on Meta::CPAN


sub Kgnz_Password
{
    my $self = shift;
    my $dictobj = $self->{dictobj};
    my %args = (
		@_);

    greet @_ ; 

    my ($uname, $cryptpwd) = (getpwuid($<))[0,1];
    my $plainword;

    # XXX XXX : looks like this getpwuid returns the crypt from the
    # shadow file - an 'x'

# XXX XXX : need term::readkey    

    system "stty -echo";
    print "Password: ";
    chomp($plainword = <STDIN>);
    print "\n";
    system "stty echo";
    



( run in 0.272 second using v1.01-cache-2.11-cpan-8d75d55dd25 )