Migrate from pass-otp 0.1

Convert pass-otp 0.1 tokens to the otpauth:// Key Uri Format.

pass-otp now stores OTP tokens in the standard Key Uri Format. Tokens saved by pass-otp 0.1 must be rewritten in this format.

Edit each token

pass edit totp-secret

Old format:

otp_secret: AAAAAAAAAAAAAAAA
otp_type: totp
otp_algorithm: sha1
otp_period: 30
otp_digits: 6

New format:

otpauth://totp/totp-secret?secret=AAAAAAAAAAAAAAAA&issuer=totp-secret

Default values

The following default values do not need to be specified in the URI:

parameterdefault
algorithmsha1
period30
digits6