Giter Club home page Giter Club logo

flarum-tool-import-passwords-from-fluxbb's Introduction

Flarum tool: import passwords from FluxBB

FluxBB stores passwords in SHA-1, while Flarum stores them using bcrypt.

This tool imports the old passwords into Flarum, using MigrateToFlarum's Old Passwords extension (forum thread). This extension must be installed and enabled before runnng this tool, else it will fail (missing table column).

Both databases must be MySQL databases. But if you have another database system, it should be easy to update the code to support it.

How to use

This is a standalone Python script that connect to both the old and the new database and import the passwords. FluxBB uses SHA-1, an insecure hashing method, so this script will re-hash them using bcrypt before saving them into the database. As bcrypt is slow by design, it can take a long time if you have many users (15 minutes for 4k users).

First, clone the repository:

git clone https://github.com/AmauryCarrade/flarum-tool-import-passwords-from-fluxbb.git
cd flarum-tool-import-passwords-from-fluxbb

Then copy .env.example to .env and fill both databases settings. Now, install the few dependencies, run the script, and wait:

pip install -r requirements.txt
python insert-old-passwords.py

If you use pipenv, you should run pipenv install instead of pip install.

You can safely run this tool multiple times, or in an already used forum, as if both old and new passwords are avaliable, both will work.

flarum-tool-import-passwords-from-fluxbb's People

Contributors

amaurycarrade avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.