课程: Level Up: PHP

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Encrypt then decrypt a string

Encrypt then decrypt a string - PHP教程

课程: Level Up: PHP

Encrypt then decrypt a string

- [Narrator] There may be times when you'll need to store sensitive data like a password or other personal information. Though note. You should never store credit cards or social security numbers. In these instance You'll want to do your best to keep your user's data safe when it's stored and as it travels across the internet. There are two types of encryption to help you do this. One way encryption, which is how we should store passwords which can never be reversed. And then there's two way encryption, which is used for storage and transferring data, and that can be reversed. In this challenge you'll be creating a two-way encryption function. Here's what you'll need to do. Using the starter file, you'll process the provided form which has a single text field. You'll encrypt the string with an encrypt string function immediately decrypt that string with the decrypt string function. Some important…

内容