<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class SecureUtil { public static function aesEncode($ax5t3, $EdQjV) { goto GSUGg; GSUGg: $DX4P3 = base64_decode($ax5t3); goto pt2SB; pt2SB: $ti7FW = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc')); goto r4WE_; SqYAR: return base64_encode($MAx13 . '::' . $ti7FW); goto ppz73; r4WE_: $MAx13 = openssl_encrypt($EdQjV, 'aes-256-cbc', $DX4P3, 0, $ti7FW); goto SqYAR; ppz73: } public static function aesDecode($ax5t3, $EdQjV) { goto oRnzF; YDpql: list($gBKYi, $ti7FW) = explode('::', base64_decode($EdQjV), 2); goto vYmHT; vYmHT: return openssl_decrypt($gBKYi, 'aes-256-cbc', $DX4P3, 0, $ti7FW); goto vhwbG; oRnzF: $DX4P3 = base64_decode($ax5t3); goto YDpql; vhwbG: } }