13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

18<br />

Implementing Secure Transactions<br />

with <strong>PHP</strong> <strong>and</strong> <strong>MySQL</strong><br />

IN THIS CHAPTER, WE EXPLAIN HOW TO DEAL with user data securely from input,<br />

through transmission, <strong>and</strong> in storage.This way, you can implement a transaction between<br />

your site <strong>and</strong> a user securely from end to end.<br />

Key topics covered in this chapter include<br />

n Providing secure transactions<br />

n Using Secure Sockets Layer (SSL)<br />

n Providing secure storage<br />

n Determining whether to store credit card numbers<br />

n Using encryption in <strong>PHP</strong><br />

Providing Secure Transactions<br />

Providing secure transactions using the Internet is a matter of examining the flow of<br />

information in your system <strong>and</strong> ensuring that, at each point, your information is secure.<br />

In the context of network security, there are no absolutes. No system is ever going to be<br />

impenetrable. By secure, we mean that the level of effort required to compromise a system<br />

or transmission is high compared to the value of the information involved.<br />

If you are to direct your security efforts effectively, you need to examine the flow of<br />

information through all parts of your system.The flow of user information in a typical<br />

application, written using <strong>PHP</strong> <strong>and</strong> <strong>MySQL</strong>, is shown in Figure 18.1.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!