php使用token对接口数据进行加密,具体方法如下:
<?php$module = $_GET['module'];$action = $_GET['action'];$urltoken = $_GET['token']; $token = md5 ($module.$ction. 'abc1201qwe-456') ;if($urltoken != $token) lexitl('error') :}else{echo 'success';}
$module = $_GET['module'];
$action = $_GET['action'];
$urltoken = $_GET['token'];
$token = md5 ($module.$ction. 'abc1201qwe-456') ;
if($urltoken != $token) l
exitl('error') :
}else{
echo '
success';
}