otpauth icon indicating copy to clipboard operation
otpauth copied to clipboard

Read export QR code

Open olfek opened this issue 1 year ago • 8 comments

My backup process:

  1. Take screenshot of Google Authenticator export QR code.
  2. Use cable to move it to PC.
  3. Need to load it into program ...

olfek avatar Sep 21 '23 10:09 olfek

IIRC it is not possible to use screenshot function on GA's export view.

Use any QR reader program of your trust on your laptop through camera. Would strongly discourage of usage of any online services, at QR code(s) contains confidential information.

Feed decoded content to the app.

dim13 avatar Sep 21 '23 17:09 dim13

IIRC it is not possible to use screenshot function on GA's export view.

It is, I did it earlier today.

Use any QR reader program of your trust on your laptop through camera

There aren't any on Windows.

olfek avatar Sep 21 '23 17:09 olfek

I'm not an expert on windows and no devices to test it there.

Quick search reveals however a bunch of options available in official app store: https://apps.microsoft.com/store/search/qr%20reader

dim13 avatar Sep 21 '23 17:09 dim13

I meant there aren't any QR code scanning apps for Windows that I trust 😛

And the official Windows Camera app can scan QR codes, but it doesn't like the GA export QR code.

image

olfek avatar Sep 21 '23 18:09 olfek

This is way beyond my knowledge of windows. Your QR app tries to be smart and instead of simply displaying content tries to open the link.

Anyway, maybe this will help you: https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767914(v=vs.85)?redirectedfrom=MSDN

Register new schema by adding

HKEY_CLASSES_ROOT
   otpauth-migration
      (Default) = "URL:otpauth migration"
      URL Protocol = ""
      DefaultIcon
         (Default) = "alert.exe,1"
      shell
         open
            command
               (Default) = "C:\Program Files\Alert\alert.exe" "%1"

Or something like that.

dim13 avatar Sep 21 '23 18:09 dim13

Yeah that might work, but earlier today I moved away from GA to Aegis (https://getaegis.app), which can export as plain text, so this issue isn't an issue for me anymore, but maybe we can leave it open for others who have to:

  1. Screenshot GA export QR code.
  2. Scan QR code on mobile device.
  3. Copy migration link.
  4. Save migration link in a text file using favorite text editor app.
  5. Clear mobile clipboard.
  6. Move text file over to PC.
  7. Copy migration link from text file.
  8. Delete text file.
  9. Run this program on copied migration link.
  10. Clear PC clipboard.

olfek avatar Sep 21 '23 18:09 olfek

Screenshot_20240614-234112

Toom7892 avatar Jun 14 '24 20:06 Toom7892

HKEY_CLASSES_ROOT otpauth-migration (Default) = "URL:otpauth migration" URL Protocol = "" DefaultIcon (Default) = "alert.exe,1" shell open command (Default) = "C:\Program Files\Alert\alert.exe" "%1"

Toom7892 avatar Jun 14 '24 20:06 Toom7892