alfred-totp 1.0.0
Alfred TOTP Workflow
Obtain one time passwords from alfred.
Requirements
Installation
$ brew install oauthtool
Now download the latest workflow and install it.
Obtaining your TOTP secrets
You could either export it from the existing applications you're using or generate a new secret from the website's user control panel.
For SteamGuard OTP, follow this guide to obtain your secret key.
Then insert your totp secret codes into the macOS keychain alfred-totp.keychain
like so:
$ security -i
> create-keychain alfred-totp.keychain
> set-keychain-settings alfred-totp.keychain
> add-generic-password -a alfred-totp -s "name of service" -w "totp secret" alfred-totp.keychain
> # repeat above command as needed, crtl-c to quit.
Usage
In alfred just type otp
then start typing the name of your service.
The TOTP code will be pasted to the top most app by default and copied to the clipboard on option return.
If you would like to display all the service's passwords at once, configure the object (script filter) of alfred-totp's workflow as below
- Note: Icons reflected in the results are located at workflow's icon directory and follow service name as entered in the keychain.
Thanks
Thanks to waynehoover and aria.ia for the code on how to list items from macOS keychain.
alfred-totp
- 11
- 2
- 1
- 0
- 0
- almost 5 years ago
- October 12, 2019
MIT License
Sun, 22 Dec 2024 13:09:24 GMT