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

19:57
ฟังก์ชัน crypt()
เข้ารหัส ด้วยฟังก์ชัน crypt()

 

รูปแบบ
crypt(str , salt)
str คือ สตริงที่ต้องการเข้ารหัส
salt คือ สตริงที่ใช้เพิ่มจำนวนตัวอักษรที่เข้ารหัส

ตัวอย่าง
<?php

$password = 'mypassword';
echo crypt($password,'test');

?>

ผลลัพธ์
tes7uhW9YRvFA

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.