Page MenuHome GnuPG

When decrypting a file, name does not match original
Closed, ResolvedPublic

Description

Release: 1.2.4

Environment

Microsoft Windows 2000 also tested in Windows XP

Description

Original file names are not stored/retrieved correctly from the GPG-encrypted file.

When a file is encrypted, it seems like its original name is not stored anywhere in the output file. When decryption takes place, the filename for the output file is the same as the .gpg encrypted without the .gpg extension.
If you have a GnuPG-encrypted file and rename it to any name, that name is the one that is used for the output file when decrypted.

Note that I'm using version 1.2.4... I'm not sure if this has been addressed in newer versions.

How To Repeat

Create a file named "Test.txt". Encrypt this file using an --output option of "Output.dat.pgp". Now, decrypt the "Output.dat.pgp" file and you get a file named "Output.dat" out of that operation and not the original "Test.txt" file name.

Fix

Unknown

Event Timeline

werner added a subscriber: werner.

Use the option
--use-embedded-filename
if you really want this. This has security implications,
though.