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.