kid85 Posted January 3, 2008 Share Posted January 3, 2008 I need to encrypt the body of my emails using PHP and later read those emails with Novell Evolution. Unfortunately, I see that GNUPG etc are a little messy to implement. Is there some other simpler alternative that works with Evolution ? Quote Link to comment https://forums.phpfreaks.com/topic/84368-setup-gnugp/ Share on other sites More sharing options...
hitman6003 Posted January 4, 2008 Share Posted January 4, 2008 There's a decent article here: http://devzone.zend.com/node/view/id/1265 Quote Link to comment https://forums.phpfreaks.com/topic/84368-setup-gnugp/#findComment-429920 Share on other sites More sharing options...
kid85 Posted January 4, 2008 Author Share Posted January 4, 2008 I'm trying to setup GnuGP aka GPG but can't make it work. Where can I find path to gpg ?? I got part of this code from: http://www.ibm.com/developerworks/opensource/library/os-php-encrypt/ //set up users $from = "myemail"; $to = "myemail"; //$gpg_path = '/usr/bin/gpg'; $gpg_path = '/usr/bin/gpg'; $home_dir = '/home/myusername'; $cmd = "echo $message | HOME=$home_dir $gpg_path" . "--quiet --no-secmem-warning --encrypt --sign --armor " . "--recipient $to --local-user $from"; $message = `$cmd`; mail($to,'Message from Web Form', $message,"From: $from\n"); Quote Link to comment https://forums.phpfreaks.com/topic/84368-setup-gnugp/#findComment-430517 Share on other sites More sharing options...
hitman6003 Posted January 4, 2008 Share Posted January 4, 2008 Where can I find path to gpg ?? use the shell command "which"... which gpg It will tell you where in your path the gpg command is located at. If it returns as not found, then make sure it's installed. If it's not in a common location (/usr, /usr/local, /usr/sfw, /opt, etc...) then you may have to use the find command (IF you are sure that gpg is installed) Quote Link to comment https://forums.phpfreaks.com/topic/84368-setup-gnugp/#findComment-430751 Share on other sites More sharing options...
kid85 Posted January 4, 2008 Author Share Posted January 4, 2008 Anybody know what this ` does? $message = `$cmd`; Quote Link to comment https://forums.phpfreaks.com/topic/84368-setup-gnugp/#findComment-430810 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.