nicm / fdm

fdm source code
269 stars 50 forks source link

Encrypted password. #44

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi.

Is it possible to store the account password encrypted, or make pass run gpg to decrypt and get password from a file?

For instance, with isync it is possible to use something like this:

PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/somefile.gpg"

Thanks.

ghost commented 6 years ago

You can use command substitution for that, for example:

pass   $(gpg --quiet --decrypt ~/.password.gpg)
ghost commented 6 years ago

Oh. Thanks!