Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/183988-php-encryption-data/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/183988-php-encryption-data/#findComment-971346
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/183988-php-encryption-data/#findComment-971371
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.