Can I extract the TOTP shared secret out of the 1Password vault?

Options
amossc
amossc
Community Member
edited July 2020 in Mac

I started using 1Password to generate my one-time secrets and now I need to be able to generate the secrets of one of the sites from the command line.

I use mmfa to do that and now I need to extract the shared secret from 1Password so I can configure mmfa with it.

Is there a way to achieve that?

Thanks.


1Password Version: 7.5
Extension Version: 70500003
OS Version: 10.15.5
Sync Type: Not Provided
Referrer: forum-search:copy totp secret

Comments

  • amossc
    amossc
    Community Member
    Options

    Never mind - I found the solution:

    When opening to edit the entry in 1Password and choosing to edit the one-time field, it shows the original URL with the shared secret in it. I could extract it and hand it to mmfa and get the right codes.

  • Ben
    Options

    Hi @amossc

    Our command line tool can also do this for you, without sharing your TOTP secrets with a 3rd party app:

    1Password command-line tool: Getting started

    Specifically, the command op get totp <item> should help. Please let me know if you have any questions. :)

    Ben

  • amossc
    amossc
    Community Member
    Options

    Thanks. It took some guessing to follow the documentation (wasn't sure about the "signin address") but yeah it finally worked.

  • ag_ana
    ag_ana
    1Password Alumni
    Options

    On behalf of Ben, you are welcome @amossc!

    If you have any other questions, please feel free to reach out anytime.

    Have a wonderful day :)

This discussion has been closed.