krsort('你要加密的数据数组');
$json_data = Json::encode($data);
$openssl_data = openssl_encrypt($json_data, 'AES-256-ECB', '你的appkey', OPENSSL_RAW_DATA);
return base64_encode($openssl_data);
$openssl_data = base64_decode($data);
$json_data = openssl_decrypt($openssl_data, 'AES-256-ECB', '你的appkey', OPENSSL_RAW_DATA);
$res = Json::decode($json_data);
return $res;