Prev: CF and Web services best practices
Next: Web Service SocketException: Default SSL context initfailed
From: jgolub on 17 Dec 2008 10:06 I don't know offhand if it works with PGP 9. You'll have to find that out yourself :). Below is the cfexecute code that I used, where the request.pgp.exe variable contains a full path to the PGP executable. <!--- execute ---> <cfset output = ""> <cfexecute name="#request.pgp.exe#" arguments='"#attributes.inputFilePath#" -o "#attributes.outputFilePath#" -z #attributes.passphrase#' timeout="10" variable = "output"> </cfexecute>
From: aubweb on 17 Dec 2008 10:23 Thanks Joshua but what's #attributes.inputFilePath# & #attributes.outputFilePath# is it the syntax to decrypt a string ?
From: jgolub on 17 Dec 2008 10:32 The command-line tool works on files, not strings. So, you put into a file the string that you want decrypted. Then, attributes.inputFilePath is the variable containing the full path to the file to be decrypted. attributes.outputFilePath is the variable containing the full path to the file that will be created to contain the decrypted information. attribute.passphrase is the variable containing the passphrase needed to gain access to the private key needed for the decryption.
From: aubweb on 19 Dec 2008 03:14 Hi hwy419, yes I am running cf8. you'll find this option there : Extensions > CFX Tags > Manage C++ CFX
First
|
Prev
|
Pages: 1 2 3 4 Prev: CF and Web services best practices Next: Web Service SocketException: Default SSL context initfailed |