62397

Is there a perl module to validate passwords stored in “{crypt}hashedpassword” “{ssha}hashedpassword

I have a table which stores user login infomration, which contains passwords in the below scheme

    <li>{crypt}hashedpassword</li> <li>{ssha}hashedpasswordsalted</li> <li>{md5}hashedpassword</li> <li>.....</li> </ul>

    Is there a <strong>perl module</strong> that understands this scheme and is able to validate the password given the plain text password ?

    Something like

    print "success!!\n" if validatePassword("helloworld",{CRYPT}r2sKInajXZ6Fk)

    Thanks.

    Answer1:

    Authen::Passphrase can do this:

    use Authen::Passphrase; print "success!!\n" if Authen::Passphrase->from_rfc2307('{CRYPT}r2sKInajXZ6Fk')->match("helloworld");

Recommend

  • IOS Authentication with DB online
  • Data signatures using Perl
  • PKI verification across Java and Python
  • Marklogic : Multiple XML files created on document on importing a csv. How to get root Document URI
  • Limiting the number of search suggestions, android
  • php return or reference?
  • X509Certificate2 p12 is store required?
  • Where does the compiler for source code to MSIL resides in .NET Framework?
  • fatal error C1083: Cannot open include file: 'Carbon/ Carbon.h': No such file or directory
  • Why Is jQuery Not Submitting This Form? (Or What Have I Done Wrong? :-p)
  • something very wrong with SESSIONS
  • EIPHTTPProtocolExceptionPeer exception using PutBlock with array of bytes all set to zero
  • Perl keyword say is not working in version 5.14.4
  • Extract data between rows r
  • What Makes These Two Array Adds Different?
  • perl, mysql - fasting way to upload a csv file into mysql?
  • Get specific string
  • Django simple Captcha “No module named fields” error
  • Alternative to overridePendingTransition() - Android
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • Is there a perl module to validate passwords stored in “{crypt}hashedpassword” “{ssha}hashedpassword
  • Rails Find when some params will be blank
  • MongoError: Incorrect arguments
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Dialing with Intent.ACTION_CALL stopps at # in phone number
  • Meteor helpers not available in Angular template
  • Highlight one bar in a series in highcharts?
  • Lost migrations and Azure database is now out of sync
  • Is there any way to access browser form field suggestions from JavaScript?
  • Android screen density dpi vs ppi
  • Dynamically accessing properties of knockoutjs observable array
  • script to move all files from one location to another location
  • WinForms: two way TextBox problem
  • Can I make an Android app that runs a web view in Chrome 39?
  • using HTMLImports.whenReady not working in chrome
  • Turn off referential integrity in Derby? is it possible?
  • Authorize attributes not working in MVC 4
  • Busy indicator not showing up in wpf window [duplicate]
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF