in reply to user authentication using unix password file
#!/usr/bin/perl -w use strict; my $crypted_passwd = 'SqL9sEYFbjX0U'; my $clear_passwd = 'blah'; my $seed = substr( $crypted_passwd, 0, 2 ); print "It's correct\n" if crypt( $clear_passwd, $seed ) eq $crypted_pa +sswd;
|
|---|