URLCode加密和解密转换 | rawurlencode,rawurldecode,urlencode,urldecode

用php写的一个URL加密和解密小工具,最大的是源代码输入框,下面4个小框分别输出rawurlencode/rawurldecode/urlencode/urldecode函数加密与解密的结果。

URLCode加密和解密转换工具: http://tool.onexin.net/urlcode.php

最常见的地方就是在我们的浏览器地址栏里会看到加密的代码。如是你想解开代码来看,我相信这个工具对你很有用。

示例一:SQL查询语句:

SELECT blogid,subject,uid,username FROM `uchome_blog` WHERE friend='0' AND hot>='2' ORDER BY dateline DESC LIMIT 0,1

rawurlencode加密后:

SELECT%20blogid%2Csubject%2Cuid%2Cusername%20FROM%20%60uchome_blog%60%20WHERE%20friend%3D%5C%270%5C%27%20AND%20hot%3E%3D%5C%272%5C%27%20ORDER%20BY%20dateline%20DESC%20LIMIT%200%2C1

示例二:URL网址:

http://friends.myspace.com/index.cfm?fuseaction=vids.individual&VideoID=3225181

urlencode加密后:

http%3A%2F%2Ffriends.myspace.com%2Findex.cfm%3Ffuseaction%3Dvids.individual%26VideoID%3D3225181

注意了,加密的代码不要搞错了。

一般用火车头采集数据,输入的网址里,我们就会用到urlencode;另外,如使用Supesite使用模块中有高级sql语句时,我们会用rawurlencode。

随机文章:

1、VI系统视觉基本要素设计
https://www.onexin.net/latest/vi-system-the-basic-elements-of-visual-design-of/

2、CSS实现导航条图片的翻转菜单
https://www.onexin.net/web-design/div_css/css-navigation-bar-picture-flip-menu/

3、数据库操作语句
https://www.onexin.net/programming/database-operation-statement/

4、WordPress分类链接中“category”去掉方法
https://www.onexin.net/wordpress/wordpress-category-links-in-the-category-remove-method/

5、[个人潜能8B]克服失败和成功的恐惧和克服被拒绝的恐惧
https://www.onexin.net/potential/neuro-associative-conditioning/personal-potentials-8a-to-overcome-the-fear-of-failure-and-success-and-overcome-the-fear-of-being-rejected/

转载请注明出处:https://www.onexin.net/resource/urlcode-encryption-and-decryption-conversion-rawurlencode-rawurldecode-urlencode-urldecode/

Leave a Reply

Your email address will not be published. Required fields are marked *