Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Decrypt output for PGP Command Line v 10.1

Created: 12 Jul 2011 • Updated: 08 Nov 2011 | 1 comment
This issue has been solved. See solution.

We migrated from PGP command line 6.5 to 10.1 but the process it create the decrypted file is different and causes issues to us.

Command use for 6.5.2

"v:\test\test.pgp"  -z phrase -o " v:\test\test.txt", on this version, the file created is test.$00 on the same directory and then file gets renamed to test.txt once decrytption is complete.

Comand use for 10.1 build 52

--decrypt "v:\test\test.pgp" --passphrase "phrase" --output " v:\test\test.txt" --overwrite remove, on this version it creates the file test.txt on the same directory and start appending records into it which causes problem to our other program.

I was wondering if I'm missing something for the PGP command line to create the temp file to text.$00 first before renaming it to the expected output name once done decrypting

Discussion Filed Under:

Comments 1 CommentJump to latest comment

dfinkelstein's picture

(Note you should ask questions about PGP Command Line in the PGP Command Line Forum)

PGP Command Line will send output to a temporary file, and then re-name it to the actual output file name (or copy it, if the temporary file is on a different filesystem; in that case the temporary file is wiped).  The temporary file is created in the current directory; you can also specify the temp file location using the "--temp-dir" option.  The temporary file name is not fixed and is not something you can rely on (e.g. on Unix platforms we use mktemp()).

What exactly is your other program trying to do with the output or the temporary file?

--------

David Finkelstein

Symantec R&D

SOLUTION