searsma88 Posted December 4, 2009 Share Posted December 4, 2009 I am new to the site and hope that this is the correct place to put this, but i am looking for some sort of tutorial or something to help me out on Encrypting data in PHP over HTTPS. I have an SSL for my site and need to create a finance application that I think should be secured when submitted. I am pretty good at PHP code but of course don't know everything. What i have to do is be able to let the customer submit it, and then an administrator be able to read it back off. Can anyone help me or point me in the right direction? Quote Link to comment https://forums.phpfreaks.com/topic/183988-php-encryption-data/ Share on other sites More sharing options...
shedokan Posted December 4, 2009 Share Posted December 4, 2009 I'm new to this too(was trying to encrypt data for paypal), but in a day of searching I found everything you want to know about encrypting. First you need to know the basics of encrypting things using SSL. I am not sure if the information is 100% correct and please anyone who knows please correct me. To encrypt data using SSL you need to generate a private key and a public certificate. In the proccess of encrypting data you first need to sign it using the key and the certificate and only then encrypt it using the certificate. The most commonly used library for SSL in php is OpenSSL, so you need to make sure it's enabled. There's a refrence for it in the php docs, but it has almost no information on the use of things: http://www.php.net/manual/en/ref.openssl.php Quote Link to comment https://forums.phpfreaks.com/topic/183988-php-encryption-data/#findComment-971346 Share on other sites More sharing options...
searsma88 Posted December 4, 2009 Author Share Posted December 4, 2009 Thanks for help, can anyone help me with the coding? i am not real sure on how to get it to come out right? Quote Link to comment https://forums.phpfreaks.com/topic/183988-php-encryption-data/#findComment-971357 Share on other sites More sharing options...
shedokan Posted December 4, 2009 Share Posted December 4, 2009 There are a lot of encrypting types so I'm not sure which one is right for you. and I couldn't decrypt it so... Quote Link to comment https://forums.phpfreaks.com/topic/183988-php-encryption-data/#findComment-971364 Share on other sites More sharing options...
JonnoTheDev Posted December 4, 2009 Share Posted December 4, 2009 Thanks for help, can anyone help me with the coding? i am not real sure on how to get it to come out right? There is no coding and this has nothing to do with php. SSL is an extra layer on your web server. If your server is running linux this is how to create a CSR which enables you to purchase an SSL certificate. http://www.geotrust.com/resources/csr/apache_mod_ssl.htm Once you have been given a key you must upload to your web server and change the apache configuration for the domain in question. There will be posts on the server administration board explaining in more detail. Quote Link to comment https://forums.phpfreaks.com/topic/183988-php-encryption-data/#findComment-971371 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.