Hi!
Yesterday, I wrote a simple tool to import passwords from an old FluxBB forum to Flarum using the Old Passwords extension by @clarkwinkelmann. You may have the same need so I put the script on GitHub.
The script will read the old database, re-hash the SHA-1 passwords using bcrypt, and save them into the Old Passwords' column in the users table. As bcrypt is slow by design, it can take a long time for big forums (approx. one hour for 14k users on my laptop).
You'll need Python 3.6+ and pip. To use it, clone the repository, copy .env.example to .env and fill the databases configuration, install the dependencies and run the script. Then wait!
If you are using an UNIX-like system:
git clone https://github.com/AmauryCarrade/flarum-tool-import-passwords-from-fluxbb.git
cd flarum-tool-import-passwords-from-fluxbb
cp .env.example .env
vim .env # or nano or emacs or whatever
pip install -r requirements.txt
python insert-old-passwords.py
(If you use pipenv, you should run pipenv install instead of pip install …; then pipenv shell before running the script with python.)