Gpg --export-secret-keys

Whenever I decrypt a gpg file, they ask me for my passphrase. E. g.

gpg -d File.gpg 

However, I can export my private key without asking for my passphrase:

 gpg --export-secret-keys --armor --output SecretKeysFile.asc 

Is the exported private key in the generated SecretKeysFile.asc file still encrypted with my passphrase? Or will anyone who has access to this file be able to decrypt the encrypted files?

+6
source share
1 answer

Anyone who imports your private keys will need to enter the appropriate phrases to use them, as now. You can verify this by creating a new user and importing the SecretKeysFile.asc file, etc.

+8
source

Source: https://habr.com/ru/post/910347/


All Articles