News for hackers. Stuff that matters.
Re:LastPass stores passwords so securely, not even its users... by yjftsjthsd-h on Monday January 20, 2020 @04:47PM (#22102342)
I really want pass or something like it, but the two times I've tried, I got stuck trying to figure out the gpg part. I suppose I should go and learn that properly anyways, since in spite of its UX it's still an extremely widely used and powerful tool, but it's a lot higher barrier to entry compared to "type in password, unlock vault".
Re:LastPass stores passwords so securely, not even its users... by sigwinch28 on Monday January 20, 2020 @06:38PM (#22102991)
The gist of it is that you need a keypair (a public and private key), which GPG can generate for you.

Then whenever you insert something into the `pass` database (which is just a directory tree full of encrypted plaintext files) the tool uses the public key to encrypt the password (or anything else):

    pass generate --no-symbols shopping/ebay 16
Later, when you want to read a password, you ask pass to decrypt the file using the private key from your keypair:

    pass shopping/ebay 16
The difficulty is really all in managing the keys, which can be quite a faff to set up and then manage. If you're only using gpg for `pass`, IMO it's easiest to copy the keypair (which gpg generated) to all your other machines.

A quick web search brought up a gist [0] which shows how to quickly get up and running on a single machine.

If you want to use it on another laptop/desktop/*nix-like machine you'll need to export both your public and private gpg keys and then import them on the other machine. When using a phone you have to do something similar. The Android clients were fairly straightforward, but Pass for iOS had a very, very clunky way of getting the keys across. Regardless, it boils down to this: get the gpg keypair on all of the devices and then get them all using the same git repo for pass.

[0]: https://gist.github.com/flbuddymooreiv/a4f24da7e0c3552942ff

Re:LastPass stores passwords so securely, not even its users... by yjftsjthsd-h on Monday January 20, 2020 @08:28PM (#22103549)
Thank you:) That gist does look like what I need; I'll have to try it out!
Re:LastPass stores passwords so securely, not even its users... by Evidlo on Monday January 20, 2020 @11:32PM (#22104327)
I would recommend Keepass. There are a variety of clients available for lots of platforms.
Re:LastPass stores passwords so securely, not even its users... by yjftsjthsd-h on Tuesday January 21, 2020 @09:13AM (#22106997)
I'm currently using keepassx(c) currently, actually:) That's mostly a good system for me, but I'm hitting some issues, mostly around syncing; syncthing is great, but it kinda sucks at taking care of conflicts, which pass (git) very much should manage nicely.