IngmarStein / 1pif-to-csv

Convert 1pif files from 1Password to CSV
MIT License
6 stars 0 forks source link

otpauth require apple-otpauth on import #2

Closed idarek closed 3 years ago

idarek commented 3 years ago

Great script! not able to use go get but downloaded and run go run main.go... instead and all fine.

Just a heads up, that otpauth://totp need to be manually changed to apple-otpauth://totp if you want to import it correctly in MacOS Monterey.

Not a big issue, as Excel Replace can deal with that, but if you want to amend will make very good tool!

IngmarStein commented 3 years ago

Ah, thanks for finding the missing link! I'll change that right away.

IngmarStein commented 3 years ago

Updated in https://github.com/IngmarStein/1pif-to-csv/commit/23e5f6127bbe900d651706af28844e212d8f263f

IngmarStein commented 3 years ago

I've just tried the batch import again (which takes an astounding amount of time for ~700 passwords) and it looks like the OTPAuth links for existing entries are not amended. It works when I open the apple-otpauth links in Safari. Did it work for you without manual steps?

idarek commented 3 years ago

I open my csv file generated by your script, changed otpauth to apple-otpauth and yes, it import in Monterey correctly and showing codes that match with what I got in other Authenticator app.

IngmarStein commented 3 years ago

Ok, I just verified with a smaller subset and Monterey indeed does update existing entries with TOTP data. Looks like something may be broken when processing a large number (the secd process goes crazy). Thanks for your feedback!

idarek commented 3 years ago

I imported 890 :) with like 20-30OTP