วันอาทิตย์ที่ 11 พฤษภาคม พ.ศ. 2557

20:09
ฟังก์ชัน md5()
การเข้ารหัส ด้วยฟังก์ชัน md5()

 

รูปแบบ
md5(string , raw)

string คือ สตริง

raw คือ รูปแบบรหัสที่คืนมา เป็นไปได้ 2 ค่า คือ
TRUE - Raw 16 ตัวอักษรรูปแบบ binary 
FALSE - (Default) 32 
ตัวอักษร hex number

ตัวอย่าง
<?php

$str = "Hello";
echo md5($str);

?>

ผลลัพธ์
8b1a9953c4611296a827abf8c47804d7

0 ความคิดเห็น:

แสดงความคิดเห็น

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.