Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ecf7ce8

Browse files
添加php加密之md5()函数
1 parent 995b682 commit ecf7ce8

File tree

2 files changed

+62
-78
lines changed

2 files changed

+62
-78
lines changed

‎.idea/workspace.xml‎

Lines changed: 51 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎php-encrypt/md5.php‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,15 @@
66
* Time: 22:29
77
*/
88
//使用MD5()函数进行加密
9-
// string md5(string str [,string raw_output])
9+
// string md5(string str [,bool raw_output])
1010
//字符串str为要加密的明文,raw_output 参数如果设为 true,则函数返回一个二进制形式的密文,该参数默认为 false
11+
12+
//register.php 是注册信息填写页面
13+
//register_ok.php是注册信息填写后的信息处理页面
14+
//index.php 是信息入口后跳转的页面
15+
echo '<p> md5()函数和sha1()函数对比<br>';
16+
echo 'md5()加密-PHPER:'.md5('PHPER').'<br>';
17+
echo 'md5(,true)加密-PHPER:'.md5('PHPER',true).'<br>';
18+
// string sha1(string str [,bool raw_out_put])
19+
echo 'sha1()加密-PHPER:'.sha1('PHPER').'<br>';
20+
echo 'sha1(,true)加密-PHPER:'.sha1('PHPER',true).'<br>';

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /