Skip to content

A plugin for MyBB 1.8 that modifies cryptographic methods.

Notifications You must be signed in to change notification settings

JoshHarmon/mybb-better-password-practices

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Better Password Practices for MyBB

Built on the foundation laid by tommm/password-hash by Tom Moore

This MyBB plugin changes the cryptography method from salted password hashing to bcrypt (via PHP's password_hash) and disables the utterly moronic method of sending a user's first password via email.

Requirements

  • PHP 5.5 or later (for the password_hash function)
    • If your host doesn't support this, then I would consider finding a new host who keeps their systems moderately updated.

Please don't install this plugin until you have considered the caveats below.

Caveats

  • The process is destructive; if you wish to deactivate/uninstall the plugin in the future, all users (including administrators) with converted passwords will need to request a new password through the Forgotten Password feature.
  • The plugin uses PluginLibrary to perform a two edits to core files; you will need PluginLibrary 12 and for the files to be writeable to continue installation.
  • !!! Whenever you upgrade MyBB 1.8, you will need to perform the same edit to inc/functions_user.php to ensure you can login to complete the process.

Usage

Upload all files and install/activate the plugin via the ACP.

By default, the plugin will convert user passwords to bcrypt the next time users login or change their password. If you would rather users choose a new password, edit ./inc/plugins/psswrd_hsh.php and set PSSWD_CONV to false.

What It Does

  • Converts user passwords to bcrypt automatically upon their next login
  • Requires "complex" passwords
  • Sets the maximum password length to 72 (after which bcrypt will just ignore additional bytes)
  • Removes the "random password" activation setting
    • Changes it to send the user an activation link
    • This should cause no disruption to users and it avoids idiotically sending their passwords who-knows-where across the internet in plaintext.

About

A plugin for MyBB 1.8 that modifies cryptographic methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%