Overview of steps in this guide
Export QR codes for all accounts one by one from Google Authenticator
This guide is based on KeePassOTP plugin for one particular reason. This plugin has an ability to import QR codes exported from Google Authenticator.
For the purpose of this article I have prepared two entries: "First Account" and "Second account". Very original names 😊
To access export feature of the app tap the free dots in the upper right corner and select "Transfer accounts" and then "Export accounts"
Now is the most boring part. You need to export all accounts one bye one. That means you need to keep only one account selected on the list then press "Next" button and save the QR code. Then press back button in the upper left corner and do the same with the next account. The tricky thing here is that Google Authenticator probably won't let you take a screenshot of your screen... I used my tablet to take a picture of the QR codes 😅
Crop images
Connect your device, the one having QR code screenshots, to the computer with KeePass installed. Copy all the QR codes to a folder and use your favorite graphic editing tool to crop the pictures as shown below:
Install KeePassOTP plugin
You can dig through KeePass website to the KeePassOTP plugin download page or you can just use this link and go directly to its releases page on github 😀 Download the "KeePassOTP.plgx" file from assets and put it into your KeePass plugins folder. Usually that is "C:\Program Files (x86)\KeePass Password Safe 2\Plugins".
Setup OTP hotkey
After you do this restart KeePass to let it load the newly installed plugin. It is possible to use plugin's auto-type placeholder but for me much more convenient option was to assign a hotkey for it. To do so go to "Tools" at the top menu and select "KeePassOTP".
On the "General" tab configure KeePassOTP hotkey. For me "CTRL+ALT+SHIFT+T" was a very good pick.
Import QR code
Finally it's time to import our carefully prepared QR codes! For every entry in KeePass for which you have prepared a QR code right click it and select "KeePassOTP" and then "OTP Setup"
New window will appear. Drag and drop your QR code to the same spot as shown below:
After you release it the seed and values should appear. Confirm with OK button and you are done!... with this one 😋 The rest to go!
Don't forget to clear storage and cache and remove Google's app!
Comments
Cryptical
This was very helpful, thanks. It takes a bit of effort to get in to the workflow, specially with multiple 2fa accounts, but once it's setup it makes logging in to 2fa secured sites so much quicker and easier.
Asday
If you have go installed (1.16 minimum) you can export all the accounts at once, decode the QR code with something like qrab, then do `go install github.com/dim13/otpauth@latest` then run `$GOPATH/bin/otpauth -link "the-decoded-qr-code"`