sub verify_wordpress_pass { my ($wordpress_hashed_pw, $passphrase) = @_; use Authen::Passphrase::PHPass; my $ppr = Authen::Passphrase::PHPass->from_crypt($wordpress_hashed_pw); # Note, $passphrase is the unencrypted password you want to verify return $ppr->match($passphrase); # Returns 1 if matched, undef if failed }