Selected Samples

shortpipeencpdf

Encrypts,signs and again encrypts a PDF document ( sample.pdf) to Alice and Bob in a 2 p7mTool instance pipe. The result is stored in sample.pdf.p7m. The certificates to encrypt to and sign with are defined by their fingerprints in file ab.txt
shortpipeencpdf.bat:

"%p7mToolDir%\p7mTool" -if ..\Data\sample.pdf -ce *..\ab.txt |
   "%p7mToolDir%\p7mTool" -sg *..\ab.txt -ce *..\ab.txt -of sample.pdf.p7m

ab.txt

ECA2 9B3F 1F7C 09EB D410 3B51 7609 92C7 FDC7 8672
6FC0 7584 C2D1 73E1 A391 390D 18E4 DC01 69EB A6ED
Copyright © Cryptigo 2001-2013Last modified on  27 Jul 2004