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

Implement PBKDF2 authentication to auth_db (will support django)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.7, 2.9.1, 3.0
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:

      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

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: