You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
464 B
PHP
20 lines
464 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Internal;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
|
|
class HsmController extends Controller
|
|
{
|
|
//加密
|
|
public function Encrypt(){
|
|
$string =request('string');
|
|
$HSM=\App\Lib\HSM::HsmEncrypt($string);
|
|
if($HSM['status']!=true){
|
|
return \Yz::echoError1('调用HSM加密失败');
|
|
}
|
|
return \Yz::Return(true,'加密成功',$HSM['data']);
|
|
}
|
|
}
|