You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/sandbox/cracklib.pl

18 lines
266 B

#!/usr/bin/perl
use strict;
use warnings;
use English;
use Crypt::Cracklib;
my $pass = $ARGV[0];
unless(defined $pass) {
die "Usage: $PROGRAM_NAME <password>\n";
}
if(check($pass, undef)) {
print "Password ok\n";
} else {
print "Password NOT ok\n";
}