Tag Info

New answers tagged

0

If you truly mean a gpg file, then the gnupg plugin as mentioned is your best option. If you mean "how can I open, edit, and save an encrypted file with vim" then you might also explore the -x option. It will allow you to enter a password and then save the file in an encrypted form, and does the right thing in terms of encrypting the .swp file as well. ...


3

apt-key adv will let you directly pass options to GnuPG. So you can do something like this to get parseable outpout: # apt-key adv --list-public-keys --with-fingerprint --with-colons ⋮ fpr:::::::::126C0D24BD8A2942CC7DF8AC7638D0442B90D010: pub:-:4096:1:9D6D8F6BC857C906:2014-11-21:2022-11-19::-:Debian Security Archive Automatic Signing Key (8/jessie) ...


6

You have the alias statement when you don't need it, what you're actually creating is a function, replace the word alias with function and it will work as expected. You also don't actually need function either, you could just have the following and it will work as expected; genpass() { gpg --gen-random 1 $1 | perl -ne' print "Your password: "; ...


2

I don't know of a method inside thunderbird, but storing the message as a file and dropping to the shell will reveal the information you're looking for. Getting verbose gpg -vv will output very verbose information on the input, including the information you're looking for. An Example An example of the output can be generated by encrypting and signing a ...


0

The signing key is selected with -u / --local-user: gpg --local-user 0xDEADBEE5 --sign file This option can be given several times in order to combine signatures of several keys: gpg --local-user 0xDEADBEE5 --local-user 0x12345678 --sign file


2

You should specify --default-key: gpg -s --default-key DEADBEE5 input > output and check afterwards with gpg -d < output | head -1 From the gpg man page( --sign section): The key to be used for signing is chosen by default or can be set with the --local-user and --default-key options.


0

add this to .emacs: ;; Do not use gpg agent when runing in terminal (defadvice epg--start (around advice-epg-disable-agent activate) (let ((agent (getenv "GPG_AGENT_INFO"))) (setenv "GPG_AGENT_INFO" nil) ad-do-it (setenv "GPG_AGENT_INFO" agent))) source: http://stackoverflow.com/a/16829842/3024945


0

THIS! -> https://github.com/ecraven/pinentry-emacs You'll have to do some wrenching, but using this thing worked for me. put the script there into a directory in your PATH and then add the following entry to ~/.gnupg/gpg-agent.conf: pinentry-program <path-to-pinentry-emacs/pinentry-emacs Then reload the agent: $ echo RELOADAGENT | gpg-connect-agent ...



Top 50 recent answers are included