怎么用php给数据加密

在php中使用crypt函数对数据进行加密,具体方法如下:

crypt函数语法:

string crypt ( string $str [, string $salt ] )

crypt函数使用方法:

// 需要加密的字符串

$str = 'this is string';

$res = crypt($str);

$res = crypt($str, 'ly');

Both comments and pings are currently closed.

Comments are closed.

Powered by KingAbc | 粤ICP备16106647号-2 | Loading Time‌ 0.218