http://qs321.pair.com?node_id=1152973

rdfield has asked for the wisdom of the Perl Monks concerning the following question:

I'm currently using Crypt::Password for checking/generating passwords of various types, but it appears to have been abandoned - it won't install via cpan, and it no longer appears in metacpan's listings.

What is the Monastery's opinion on the best alternative? Is there even a direct replacement or do I need to use a combination of other modules?

rdfield

Replies are listed 'Best First'.
Re: Crypt::Password alternatives
by Corion (Patriarch) on Jan 17, 2016 at 14:04 UTC
      Not sure if it is a bug, in the cpan shell it used to show an error (something about a signature, didn't write it down at the time), but now it's just not found:
      cpan[3]> install Crypt::Password Warning: Cannot install Crypt::Password, don't know what it is. Try the command i /Crypt::Password/ to find objects with matching identifiers. cpan[4]> i /Crypt::Password/ Module < Crypt::Password::StretchedHash (RITOU/Crypt-Password-Stretch +edHash-0.05.tar.gz) Module < Crypt::Password::StretchedHash::HashInfo (RITOU/Crypt-Passwo +rd-StretchedHash-0.05.tar.gz) Module < Crypt::Password::Util (PERLANCAR/Crypt-Password-Util-0.12.t +ar.gz) 3 items found
      Not to worry, I've looked at the source code and built a suitable wrapper to crypt for my code's use that mimics the relevant functions that I needed - just generating a suitable salt, and then extracting the salt again for the comparison with the plain text.

      rdfield

Re: Crypt::Password alternatives
by hotchiwawa (Scribe) on Jan 17, 2016 at 14:29 UTC