In this increasingly virtual online world, you have to be careful to protect your data. Learn the
basics of encoding and encrypting important bits of information, such as passwords, credit card numbers, and even entire messages. Get an overview of what it means to encrypt and decrypt information, as well as some practical examples involving passwords and other data, using PHP’s built-in functionality.
Consider how today’s world differs from the world of just 20 years ago. Long ago, in the 1980s, encryption was spy stuff — something you read about in a techno-thriller by Tom Clancy. If somebody wanted to keep a bit of information private, he encrypted the data with a password, a pass phrase, or another basic method.
Fast-forward to today and encryption is everywhere. Passwords are stored encrypted in databases. Encrypted tunnels through cyberspace are possible via SSL, SSH, and other technologies — not to mention virtual private networks. Everyday people can and do use Pretty Good Privacy (PGP) to armor their sensitive files and e-mail.
As a PHP developer, you should be aware that strong security practices aren’t just for exotic applications — they’re for the project you’re working on now. This awareness runs from the pedestrian (such as not showing plaintext in a password field on a login page) to dizzying heights of cryptographic methods (such as DES, MD5, SHA1, Blowfish).
There’s not enough time or room to discuss every aspect of encryption here, but you’ll learn the essentials that will cover most situations you’ll find yourself in. We begin with an overview of what it means to encrypt and decrypt information, followed by some practical examples involving passwords and other data, using PHP’s built-in functionality. Throughout, encryption will be discussed within the larger context of security. Finally, other PHP extensions and plug-ins will be covered. PHP encryption for the common man
From around the Web
- Windows Vista Service Pack 2 Latest Release Schedule
- Vista SP2: What is inside?
- NetWitness releases free version of security software
- Three Reasons Why Users Won’t Buy Into Security
- Automated security testing & its limitations
- Google Wants to Preinstall Chrome Browser on PCs
- Mozilla warns of Firefox China add on
- Firefox No Longer an Automatic Defense Against Browser Drive Bys
- Google patches Chrome file stealing bug
- Apple plays catch up, adds anti fraud safeguard to Safari
- Researchers find vulnerability in Windows Vista
- How to Use Network Behavior Analysis Tools
- The insider security threat in IT and financial services
- Windows 7 security: An overall improvement?
- Windows 7 UAC could be less of a nag