| OpenPGP Encryption |
|
|
|
| Saturday, 12 September 2009 08:32 | ||||||
|
Recently while working on a project for a large pharma company I was asked to investigate how we could encrypt emails on one server, deliver them securely, and then decode them on a second server. I knew there was a project called OpenPGP and so I started investigating... It turns out that this is rediculously easy to use! Once you've installed OpenPGP and Crypt_GPG the process is not tricky.
The results are usable and effective! Go have a look at my OpenPGP test script in the sandbox and enjoy sending yourself some 2048bit secure emails! I've included the important bits of the code below just incase it helps anyone out.
Encrypting the form
$message = "Format your email message here from the form data"; Decrypting the message
if (!isset($_POST['message'])) {
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |


