<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class SecureUtil { public static function aesEncode($m1RYi, $Y0YxF) { goto BLStT; Y0akU: $bBdyp = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc')); goto tS7k0; BLStT: $cSvZD = base64_decode($m1RYi); goto Y0akU; tS7k0: $P6h20 = openssl_encrypt($Y0YxF, 'aes-256-cbc', $cSvZD, 0, $bBdyp); goto S6tTR; S6tTR: return base64_encode($P6h20 . '::' . $bBdyp); goto YaCUF; YaCUF: } public static function aesDecode($m1RYi, $Y0YxF) { goto IFC10; NXGUl: return openssl_decrypt($tsDgY, 'aes-256-cbc', $cSvZD, 0, $bBdyp); goto AKuTn; IFC10: $cSvZD = base64_decode($m1RYi); goto ZLxmp; ZLxmp: list($tsDgY, $bBdyp) = explode('::', base64_decode($Y0YxF), 2); goto NXGUl; AKuTn: } }