News for hackers. Stuff that matters.
Re:Simple Password Management with GPG by war1025 on Sunday November 29, 2020 @11:38PM (#25250787)
I think `pass` has an official extension to handle OTP, but here is how I do it:

  #/bin/bash

  clip $(oathtool -b --totp "$(pass show otp/$1 | head -n 1)")

Basically there is a really handy utility called `oathtool` you can install that has all the one time password logic built into it.

Then in my `pass` store I have a `otp` folder where I put the codes for my different services.

So to get the OTP code for paypal for example, I do this:

   pass otp paypal
And then the code is copied to my clipboard and I can just paste it.

There are no comments on this comment yet.