Examples of typical discuz encryption methods for php encryption and discuz details
This article describes the classic encryption method of discuz content in php encryption. We will share this with you for your reference. The details are as follows:
Introduction: Sometimes, we want to encrypt some sensitive fields in the Table. After thinking about the solution that has not been better for a long time, I checked it online in the background, rest assured that the discuz Forum solution can solve this situation well. Let's copy it and share it with you. The Code is as follows:
Header ("Content-type: text/html; charset = UTF-8"); echo $ string = 'garden road 888 '; echo'
The code execution result is as follows:
The encryption period of No. 888 Huayuan road is 10 seconds. The ciphertext content is ce9eelLd6jpd7hZJTRg +/fgg8cD9VG + 1NsHvkavEKhdvhk7jcfDoQTYSAAw, Which is decrypted immediately after encryption :... 6 seconds after Garden Road 888, decryption... string 'garden road 888 '(length = 15) decrypted after 5 seconds again... string ''(length = 0)
PS: if you are interested in encryption and decryption, refer to the online tools on this site:
MD5 online encryption tool:
Http://tools.jb51.net/password/CreateMD5Password
Thunder, express, and Tornado URL encryption/Decryption tools:
Http://tools.jb51.net/password/urlrethunder
Online hash/hash algorithm encryption tool:
Http://tools.jb51.net/password/hash_encrypt
Online MD5/hash/SHA-1/SHA-2/SHA-256/SHA-512/SHA-3/RIPEMD-160 encryption tools:
Http://tools.jb51.net/password/hash_md5_sha
Online sha1/shaloud/sha256/sha384/sha512 encryption tool:
Http://tools.jb51.net/password/sha_encode