Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch ID support for macOS #4

Open
timkgh opened this issue Mar 12, 2024 · 4 comments
Open

Touch ID support for macOS #4

timkgh opened this issue Mar 12, 2024 · 4 comments

Comments

@timkgh
Copy link

timkgh commented Mar 12, 2024

So we don't have to type long Aegis passwords.

@sam-artuso
Copy link

That'd be amazing!!! 🎉

@timkgh
Copy link
Author

timkgh commented Mar 13, 2024

@marcopaganini if termotp could read the password from stdin, we could use https://github.com/remko/age-plugin-se to store an encrypted Aegis password in a file that can then be decrypted using Touch ID, e.g.
age --decrypt -i key.txt aegis-password.age | termotp --input aegis.json --plain | grep -i ...

Of course, native Touch ID support would be even better.

@marcopaganini
Copy link
Owner

It's yer lucky day :) Version 0.0.8 now supports reading passwords from stdin. Please test it thoroughly. What I did is simple: If the input is a terminal, use the regular terminal password hiding shenanigans. If not, just read the passwords from the terminal (max 256 bytes) and trim all binary zeroes and CR/LF at the end.

It would be interesting to support Touch ID, but I have no access to a Mac to test it. Also, if your workaround above works fine, I can add it to the documentation and that would make it a generic solution.

Please let me know how it goes.

@timkgh
Copy link
Author

timkgh commented Mar 15, 2024

@marcopaganini It works very well, thank you!

To fully automate it, could we have full plain text output without headers (issue #5) so I can just pipe it to grep, or for --fzf / --fuzzy to just show the matches and exit when they are passed an arg?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants