4 ms·
How do you get your passwords out of the repo on your phone?
by spicybright 6y ago
How do you get your passwords out of the repo on your phone?
- PureParadigm 6y agogit push. The Android app works with git repos from SSH. I also use Wireguard since I run my SSH server behind the VPN, but this is obviously optional since you can just expose your SSH server to the internet.
- spicybright 6y agoSorry, I meant more on the UI side. Like if I'm on a website that needs a login, do I run a pass command in a local terminal, then copy and paste?
- coldtea 6y agoThat's what they meant with "The Android app works with git repos from SSH". That is: there are GUI mobile and desktop client apps, compatible with the pass storage schemes. In this case, the parent refers to one such app that can connect to e.g. your GitHub repo with your passes, and read/manage the passwords from there.
- PureParadigm 6y agoAh, there is an Android app [1] which you sync the passwords to and it basically presents a list of all your websites. To use a password: tap on the website name, unlock your GPG key, and then see your password and put it in your phone's copy/paste buffer. [1] https://play.google.com/store/apps/details?id=dev.msfjarvis.aps&hl=en_US&gl=US https://play.google.com/store/apps/details?id=dev.msfjarvis....
- jimmaswell 6y agoSounds a lot less convenient than e.g. Samsung Pass. Depends what you value I guess.
- eulenteufel 6y agoOn my phone the Android app also asks to fill login forms in Firefox.
- stonecharioteer 6y agoThank you. I wish OP could have linked what Android app he was using
- zaphirplane 6y agoa bunch of apps busted (tiktok) that polled the iphone’s clipboard, isn’t android also susceptible to that ?
- dopidopHN 6y agoThis is correct. Pass can only copy it in the paste buffer for 45s. The command has a nice auto completion and search feature. And calling it without arguing give you a list of all the name of the key you have in a tree view. I really enjoy using that little utility since I would say 4 or 5 years.
- aborsy 6y agoDo phone apps support Yubikey?
- eptcyka 6y agoIt supports PGP keys stored on yubikeys via OpenKeychain. There's talks of removing support for OpenKeychain in lieu of a homegrown implementation since OKC develoent has lost velocity. And their library interface can be a bit cumbersome.
- PureParadigm 6y agoThe Password Store app delegates key management to another app. I use OpenKeychain [1] for this. I believe OpenKeychain supports Yubikeys, but I haven't used that feature myself so I can't speak about how well it works. [1] https://www.openkeychain.org/ https://www.openkeychain.org/
- GekkePrutser 6y agoIt works perfectly both over NFC and USB either OTG micro USB or USB-C. I only use hardware keys now.
- nulbyte 6y agoMost apps delegate PGP functionality to OpenKeychain, which works with Yubikeys. I use a Yubikey 5 NFC and the Password Store app from F-Droid.
- deleted 6y ago[deleted]
- FrenchyJiby 6y agoYes! Termux[0] does supports gpg and pass but no yubikey by default, but okc-agent[1] is a third party binding of OpenKeyChain, providing barebones gpg via yubikey. I use this to decrypt passwords via NFC: [0]: https://termux.org https://termux.org [1]: https://github.com/DDoSolitary/OkcAgent https://github.com/DDoSolitary/OkcAgent Simple password decrypt: okc-gpg -d ~/.password-store/mypass.gpg I made a termux shortcut (button on homescreen) to emulate pass-dmenu via this ( store in ~/.shortcuts): #!/data/data/com.termux/files/usr/bin/env bash # Lists passwords in termux dialog, decrypting selection to clipboard for 45s # http://redsymbol.net/articles/unofficial-bash-strict-mode/ set -euo pipefail # Inspired by https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu shopt -s nullglob globstar prefix=${PASSWORD_STORE_DIR-~/.password-store} password_files=( "$prefix"/**/*.gpg ) password_files=( "${password_files[@]#"$prefix"/}" ) password_files=( "${password_files[@]%.gpg}" ) password_files_csv=$(printf '%s,' "${password_files[@]}") choice_json=$(termux-dialog sheet -t "Select password" -v "$password_files_csv") choice_exit=$(echo "$choice_json" | jq .code) [[ "$choice_exit" == 0 ]] || exit password=$(echo "$choice_json" | jq .text | tr -d '"') okc-gpg -d ~/.password-store/"$password".gpg 2>/dev/null | head -n 1 | termux-clipboard-set # pass show -c "$password" 2>/dev/null termux-toast -s "Password copied to clipboard" sleep 46 termux-clipboard-set "" termux-toast -s "Password remove from clipboard"
- koolba 6y agoNot having access to your passwords on your phone is considered by some of us as a feature.
- spicybright 6y agoOP said they sync it to their phone.
- eptcyka 6y agoThe android app allows one to use OprnKeychain, so I can use my gpg key on my yubikey to both authenticate the SSH session to do git pulls and decrypt individual secrets.
- tazeg95 6y agohttps://fr.jeffprod.com/blog/2019/gerez-vos-mots-de-passe-avec-des-logiciels-libres/ https://fr.jeffprod.com/blog/2019/gerez-vos-mots-de-passe-av... (french)