1

In Ubuntu 18.04 I encrypted a file in Nautilus (Files) using the right click 'Encrypt' menu selection. I use the 'Shared Passphrase' option and enter a password. I do not check the 'Save in password manager' box. The .pgp file is created as expected. When I want to decrypt the .pgp file I right click and select 'Open With Decrypt File'. I expect to be asked for a password but instead the file is opened directly. Can this be configured so that I have to enter a password to decrypt the file? Thanks

1

1 Answer 1

0

I had the same problem and got a solution and explanation here.

Explanation

When you assign the passphrase it is still remembered by GPG when you attempt to immediately open the file. In order to forget the passphrase you will need to log out of your Ubuntu computer or in some cases, reboot your machine. You can test this as follows:

Test Steps

  1. Encrypt the file as you have described. This should leave you with the original file as well as the .pgp file.
  2. Delete the original file.
  3. Log out of your computer.
  4. Log back in and attempt to open the .pgp file.

Expected Result

You should now be prompted for the passphrase that you created. Note that logging out may not work so you can also try rebooting your machine.

2
  • Two things. 1. This is the same link given in the comment. 2. Just a link is not considered an answer as what about later if the link is gone?
    – David
    Feb 22, 2022 at 5:36
  • Thanks for the feedback David. I've edited my response to include the actual explanation.
    – HanzosFury
    Feb 23, 2022 at 23:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .