Examples of typical discuz encryption methods for php encryption and discuz details

Source: Internet
Author: User

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

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.