Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-50871

Implement PBKDF2 authentication to auth_db (will support django)

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.8.7, 2.9.1, 3.0
    • None
    • Authentication

    Description

      inlcude another option to log in the django databases, they split the one way hashed password with $ so this line of code could made the autentication:
      $pieces = explode("$", $fromdb);
      $iterations = $pieces[1];
      $salt = $pieces[2];
      $old_hash = $pieces[3];
      $hash = hash_pbkdf2("SHA256", $extpassword, $salt, $iterations, 0, true);
      $hash = base64_encode($hash);
      return $hash==$old_hash;

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              EsdrasCaleb Esdras Caleb Oliveira Silva
              Mark Nelson Mark Nelson
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: