Questions about how to load content and MD5 After clicking

Source: Internet
Author: User
I have several categories about loading content and MD5 After clicking, that is, displaying content and images after clicking. However, I used display: none to hide the corresponding content and images, that is not to hide, but the content and images have been loaded in advance .. Is there a way to hide the content before loading the corresponding content and image when I click the corresponding category? Another problem is that I use P to load the content and MD5 After clicking.
I have several categories, that is, displaying content and images after clicking, but I used display: none to hide the corresponding content and images, that is not to hide, but the content and images have been loaded in advance .. Is there a way to hide the content before loading the corresponding content and image when I click the corresponding category?
Another problem is that the result of using the PHP md5 function to encrypt 111111 is 96e79218965eb72c92a549dd5a330112. But is there any way to use PHP to encrypt 111111 to encrypt? This is also MD5.
Thank you for your help.

------ Solution --------------------
Write your own encryption algorithm. The principle is very simple, that is, to convert the string according to certain rules, that is, to encrypt the string, and then convert the converted string in reverse order to restore it.
------ Solution --------------------
1. JS delays loading and stores the source address in the original attribute of img.
2,
PHP code
[User: root Time: 11: 14: 10 Path:/home/liangdong/php] $ php md5.php login [User: root Time: 11: 14: 13 Path: /home/liangdong/php] $ cat md5.php
  [User: root Time: 11: 14: 15 Path:/home/liangdong/php] $
------ Solution --------------------
Search for 70-66-A4-0F-42-77-69-CC-43-34-7A-A9-6B-72-93-1A
We can see that this is 123456 MD5 instead of 111111 MD5.
Some people say that conversion to unicode encoding and MD5 can be obtained.
But unfortunately, whether it is converted into a UCS-2BE, ucs-2le, ucs-4le, ucs-4be in php can not MD5
------ Solution --------------------
Can be used together:
PHP code
$str = md5("111111");echo $str . "
";#96e79218965eb72c92a549dd5a330112function encode($str) { $newstr = null; for ($i = 0; $i < strlen($str); $i++) { $new = substr($str, $i, 1); if ($i == strlen($str) - 1) { $newstr .= (++ $new); break; } if ($new == 9) $newstr .= "*-"; else $newstr .= (++ $new) . "-"; } return $newstr;}echo encode($str) . "
";#*-7-f-8-*-3-2-9-*-7-6-f-c-8-3-d-*-3-b-6-5-*-e-e-6-b-4-4-1-2-2-3function decode($str) { $new=""; $arrStr = explode("-", $str); foreach ($arrStr as $k => $value) { $val = ord($value); $tmp = chr(--$val); if($tmp === ")") $tmp = 9; $new.=$tmp; } return $new;}echo decode(encode($str))."
";#96e79218965eb72c92a549dd5a330112

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.