Encrypting form results

Ok, I did a search on this and read over everything, but I'm still having problems and was wondering if someone can push me into the right direction to get this done the correct way.

I wrote a script to take in a form's information and write it to disk. I also have gpg set up so I can do encryption. Whenever I try to use the system function though it doesn't work for running gpg. I've verified that the system function does work by making it create a file. When I ran that using my web browser, it created the file just as it was supposed to. For some reason when I try to execute the same command I would from the command line for gpg though it doesn't work.

One thing that does concern me a little is when I run gpg it says that it is running in unprotected memory, however it still encrypts the file. I'm wondering if this error message is what is keeping it from working. I'm writing the data to disk in my home directory on the server so it isn't web accessible. However the script is able to write the unencrypted version with no problems, so I don't think that is keeping gpg from writing there.

I looked into using a form to do the encryption automatically, but I they all say they need PGP (I don't know if that means it will work with GPG or not) and basically I didn't go past that point.

One other note is I'm running this from my CGI wrapper (scgi-bin).

Can anyone please offer up any help regarding this?


:edit: Not sure if this should have been in here or programming, please move it if I'm in the wrong place and I apologize :/edit:

 

 

 

 

Top