PHP encryption question

Forum: ProgrammersTotal Replies: 2
Author Content
J_Maxwell

Oct 30, 2002
4:01 PM
Hello!

How hard would it be to encrypt the contents of a form, and then send it in an encrypted email to a person who has software to decrypt it? I think that the software would be PGP.

If it would be pretty simple, do you have any code?

Thanks,

J_Maxwell
dave

Oct 30, 2002
10:41 PM
Hi Joseph,

I've never done this, but it sure sounds interesting (especially if you're wanting to do eCommerce mailings in an encrypted fashion.

I did a bit of searching, and it looks like the only way to accomplish this is going to be with shelling out to the 'gpg' shell command using something like system().

The man page for popen() has a few comments about using popen() for this very thing, opening a couple of pipes (for reading and writing) and then calling gpg with the content of your message.

The man page (and comments) is here: [HYPERLINK@www.php.net]

Scroll down a bit and you'll see the comment about GPG (or your can Ctrl-F search the page for gpg). There are a few comments on the subject.

Have fun - this sounds like an exciting undertaking!

dave
server_room

Oct 30, 2002
11:41 PM
You could have a server based system where php encrypts the message and then stores it in a DB then the recipient gets an email with a special link with a unique access code. Now they can see the message that was sent to them, they could have the option of downloading it? or deleting it too.


Just a thought

Samuel Harris

Posting in this forum is limited to members of the group: SITEADMINS, SUBSCRIBERS, MEMBERS.]

the Open Forums!

  Login
If you don't have an account yet, visit the registration page to sign up.

If you already have an account, you may login here:

Username: Password:

  Welcome to the Open Forums!!
Welcome to the Open Forums!!

  Hosted By...

This website is hosted by:

 -
PreparingSons
 - Titus2.com


[ Copyright © the Open Forums! | All times are recorded in ET ]

[ Contact Us ]

Login

Powered by Scif 5.3 build 285 by StandardOut, Inc.