Simple TOTP Extenstion to Pass Project.
This plugin use openssl to decode the sha1 TOTP secret key, based in local timestamp. NOTE: Is super important your system datetime is syncked to NTP servers.
- pass
- openssl
- NTP configured
$ wget -qO ./otp.bash https://github.com/betabrandao/simple-totp/raw/refs/heads/main/otp.bash | sudo install ./otp.bash /usr/lib/password-store/extensions/otp.bash
- Add to your secret a
secret:
key.
Example:
$ pass edit mypass/example
anpasswordexempleusingpass
---
user: aUserExample
pass: anpasswordexempleusingpass
url: https://anpasswordexempleusingpass.example.com
secret: YOURTOTPBASE32SECRET
Save this.
- To copy token to clipboard , use
-c
option. example:pass otp path/of/password -c
; - To generate qrcode to OTP Applications, use
-qr
option;
$ pass otp mypass/example
Done! Simple TOTP!