Open fieala opened 8 years ago
That doesn't sound like it's going to work. If you don't know the file name then the lib won't know it either. Names are not part of the encrypted data.
It would be the equivalent of "gpg --decrypt my-file.gpg" my-file.gpg is the only file specified. The file would be decrypted in the same directory and GPG knows the original file name; the same file name that was supplied with the "gpg --encrypt" command.
In most cases only gpg extension is the difference in the filename. Encrypt: test.txt ->test.txt.gpg Decrypt: test.txt.gpg -> test.txt
Like @soukoku said, there is no filename information in the encrypted data, Just the content is encrypted. You can basically name it to whatever you like.
Is there a way to specify an output directory instead of a file name when decrypting? I do not know the file names in the encrypted file.