3 ms·
Yes! That's what I use - it's very convenient. The first line of the pass file needs to be the totp string, that's all. But you can also use oathtool at the com
by msravi 4y ago
Yes! That's what I use - it's very convenient. The first line of the pass file needs to be the totp string, that's all. But you can also use oathtool at the command line with the secret.
oathtool -b --totp <otp secret>
- vegardx 4y agoIt doesn't have to be the first line of a password store file, it can be anywhere in the file, as long as it starts with `otpauth://`. You can also just append it using `pass otp append foobar`. There's also a handy app that can read the password store database for both Android and iOS, which also supports OTP.
- msravi 4y agoOh, didn't know that. Thanks! Which is the app?
- vegardx 4y agoI've only used the iOS app, but there's a list of applications and integrations on the website: https://www.passwordstore.org https://www.passwordstore.org The app is also handy for bootstrapping OTP, because some implementations only give you the QR-code, not the secret or URI, and then you have to do the dance with decoding the QR-code before adding it.