-
-
Notifications
You must be signed in to change notification settings - Fork 240
Importing from Blizzard Authenticator
Stratum supports 8 digit codes and as such Blizzard Authenticator accounts are supported. However, Blizzard uses a proprietary algorithm for their account setup, so the accounts must be converted to standard TOTP.
This guide expects that you are familiar with the Python pip package system
Use the Battle.net Authenticator Tool to generate a otpauth URI for Stratum. You can provision a new authenticator for Battle.net, however this guide will focus on migrating an existing authenticator.
Follow the installation instructions to prepare the script.
You can simply clone the project and retrieve all necessary dependencies using the following commands:
Clone the repo
git clone https://github.com/Nighthawk42/bnet_auth_tool.git
cd bnet_auth_tool
Create a virtual environment and install the dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Visit the Battle.net account security page and follow the steps to retrieve the serial and restore code:
- Under Battle.net Authenticator, click "Get Restore Code"
- Confirm the login using your existing authenticator
- Copy the Serial and Restore code for later
- Run the script using
python bnet_auth_tool.py
or using the binary depending on the chosen installation method. - Select Option 2
Retrieve existing device secret
- Follow the on-screen instructions to retrieve the session token
- When prompted, enter the Serial and Restore Code obtained in the previous step
The script generates a QR code (battlenet_authenticator_****.png) that you can scan. Alternatively, you can use the QR code generator to generate a code from the otpauth URI provided.