Decryption stalling after SIGINT

2020-07-07 Thread Andrew Pennebaker via Gnupg-users
Hello, I am seeing some strange behavior with gpg --decrypt . I had to lookup a password recently, and so naturally pressed Control+C to cancel the prompt. However, when gpg terminated, it did not fully cleanup the terminal. Further commands in my shell were obfuscated with asterisks (*). That's

Re: Traveling without a secret key (was: As a fan of GnuPG ... )

2020-07-07 Thread Philihp Busby via Gnupg-users
Regenerating your secret key like this is perhaps dangerous and easy to do wrong, for example you will probably leak it in your shell's history. If an attacker finds out this is your scheme, they can then start to brute force your secret key without need any access to your data, which happened w

Re: Traveling without a secret key

2020-07-07 Thread Stefan Claas
Stefan Claas wrote: > Well, just a thought ... because I thought about the entropy for a strong > password, while it can be memorized > easily. P.S. I would also say there is a difference between the article you linked to and my approach. With the brainflayer approach one enters his/her easy t

Re: Traveling without a secret key (was: As a fan of GnuPG ... )

2020-07-07 Thread Stefan Claas
Philihp Busby wrote: > Regenerating your secret key like this is perhaps dangerous and easy to do > wrong, for example you will probably leak it in > your shell's history. If an attacker finds out this is your scheme, they can > then start to brute force your secret key > without need any acces

Re: Traveling without a secret key

2020-07-07 Thread Stefan Claas
Stefan Claas wrote: > Stefan Claas wrote: [...] > Here's a little Go program, wich does this without the above commands, > so that it can be used on Windows without OpenSSL: > > package main > > import ( > "crypto/sha256" > "bufio" > "os" > "fmt" > "encoding/base

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-07 Thread Stefan Claas
Stefan Claas wrote: > Werner Koch via Gnupg-users wrote: > > > On Mon, 6 Jul 2020 09:58, renws said: > > > > > Thanks for your reply. However I've never uploaded the public key to > > > any keyservers, is it possible to recover the public key from the > > > private key (I still have ~/.gnupg/

Re: Traveling without a secret key (was: As a fan of GnuPG ... )

2020-07-07 Thread Stefan Claas
Stefan Claas wrote: > ... you should try this out in your terminal and look at the beginning > of the output: > > $ echo 1fccaf3d | xxd -r -p | openssl dgst -sha256 -binary | openssl enc > -base64 I thought about this technique a bit for easy to remember passwords, which can be converted to str

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-07 Thread Stefan Claas
Werner Koch via Gnupg-users wrote: > On Mon, 6 Jul 2020 09:58, renws said: > > > Thanks for your reply. However I've never uploaded the public key to > > any keyservers, is it possible to recover the public key from the > > private key (I still have ~/.gnupg/private-keys-v1.d)? > > If you real

Re: gpg: keyserver refresh failed: No keyserver available

2020-07-07 Thread Werner Koch via Gnupg-users
On Mon, 6 Jul 2020 09:11, Jerry said: > gpg2 --refresh-keys > gpg: enabled debug flags: memstat > gpg: refreshing 168 keys from hkp://pool.sks-keyservers.net > gpg: keyserver refresh failed: No keyserver available Please add in the error case always the --verbose option which may yield more diag

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-07 Thread Werner Koch via Gnupg-users
On Mon, 6 Jul 2020 09:58, renws said: > Thanks for your reply. However I've never uploaded the public key to > any keyservers, is it possible to recover the public key from the > private key (I still have ~/.gnupg/private-keys-v1.d)? If you really can't find a backup of the public key you can cr