PHP encryption Discuz Content Classic Encryption Method Example detailed

Source: Internet
Author: User
Tags php programming
In this paper, we describe the classic encryption method of Discuz content of PHP encryption. Share to everyone for your reference, as follows:

Guide: Sometimes, we hope that some sensitive fields in the table to encrypt, think of a good long time no better solution, backstage in the online search, rest assured that the Discuz forum this kind of solution to this situation is good, special copy come, to share a bit, the code is as follows:

Header ("Content-type:text/html;charset=utf-8"), echo $string = ' Garden road No. 888 '; ECHO ' 
No. No. 888 Garden Road Encryption valid for 10 seconds, ciphertext content: CE9EELLD6JPD7HZJTRG+/FGG8CD9VG+1NSHVKAVEKHDVHK7JCFDOQTYSAAW encryption immediately after decryption: ... No. 888 Garden Road, 6 seconds later decrypt ... string ' Garden Road No. 888 ' (LENGTH=15) again 5 seconds later decrypt ... string "(length=0)

I hope this article is helpful to you in PHP programming.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.