UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Importing 2FA keys

    Scheduled Pinned Locked Moved General
    5 Posts 3 Posters 598 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • P Offline
        PublicLewdness
        last edited by

        Is there a way to easily import keys for either 2FA Manager or Authenticator NG ? On my old Mate 30 I was able to export the keys from FreeOTP+ to json format and move it over to my new Nexus 5 but I don't see an import option.

        Google Pixel 2
        Ubuntu Touch 16.04 Stable OTA-25

        Volla X23
        Ubuntu Touch 20.04

        CiberSheepC 2 Replies Last reply Reply Quote 0
        • dobeyD Offline
          dobey
          last edited by

          There is currently no import feature in authenticator-ng, but you could write a script to convert the JSON format to the INI format used, and concatenate it to the ~/.config/authenticator-ng.dobey/authenticator.conf file.

          Replace each {part} with the appropriate part in the data below, for each account:

          [%7B{uuid}%7D]
          account={account_name}
          counter={counter_value}
          pinLength={pin_length}
          secret={secret_key}
          timeStep={time_step}
          type={type}
          

          Generally speaking, {pin_length} will probably always be 6 and {time_step} will probably always be 30. If you have a script that converts the JSON to this format for each account, and puts them in a file with a blank line between each entry, it should work in Authenticator NG.

          1 Reply Last reply Reply Quote 1
          • CiberSheepC Offline
            CiberSheep
            last edited by

            2FA Manager doesn't have an import option yet but it's a feature that could be added soon 🙂

            Another planet, another time, another universe!

            1 Reply Last reply Reply Quote 1
            • CiberSheepC Offline
              CiberSheep @PublicLewdness
              last edited by

              @PublicLewdness said in Importing 2FA keys:

              I was able to export the keys from FreeOTP+ to json format

              Do you get a json file per key?

              Another planet, another time, another universe!

              1 Reply Last reply Reply Quote 0
              • CiberSheepC Offline
                CiberSheep @PublicLewdness
                last edited by

                @PublicLewdness I have just updated 2FA manager and now you should be able to import keys from json or txt files from FreeOTP+

                Another planet, another time, another universe!

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post