Manual:wrapOldPasswords.php

From MediaWiki.org
Jump to: navigation, search

Other languages:
català • ‎Deutsch • ‎Ελληνικά • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎한국어 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil • ‎русский

Details[edit]

wrapOldPasswords.php file is a maintenance script to wrap all passwords of a certain type in a specified layered type that wraps around the old type.

Since MediaWiki 1.24, if using the default settings, password hashes will automatically be updated to PBKDF2 as users log in. This is not working currently. If necessary, the old MD5 hashing can be restored by changing $wgPasswordDefaultManual:$wgPasswordDefault to 'B'. wrapOldPasswords.php can wrap all passwords in pbkdf2-legacyA or pbkdf2-legacyB (or the hashing algorithm of your choice) if you don't want to wait for your users to log in.

Usage[edit]

Option/Parameter Description
--type Type to convert to. This must be one of the layered types from $wgPasswordConfig, meaning either pbkdf2-legacyA or pbkdf2-legacyB.
--verbose Create verbose output during execution.