<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; use Illuminate\Support\Str; class EncodeUtil { public static function expiredDataForever($c9IkZ, $m1RYi) { return self::expiredData($c9IkZ, $m1RYi, 0); } public static function expiredData($c9IkZ, $m1RYi, $EPE8u = 3600) { goto muKVA; c3Vea: $K0B1S = strtolower(Str::random(6)); goto n33uO; Q82bM: $lyajz[] = $KoS8F; goto DgVUp; Lo8cZ: $KHNHA = dechex($EPE8u); goto wzM52; n33uO: $QC81l = dechex(time()); goto Lo8cZ; UJ6OS: $lyajz = array(); goto Q82bM; LQk7i: $lyajz[] = $KHNHA; goto XDJXw; ws0cA: $lyajz[] = $QC81l; goto LQk7i; a3zbj: return join('_', $lyajz); goto pwzGh; wzM52: $fJLzJ = substr(md5($m1RYi . $KoS8F . $K0B1S . $QC81l . $KHNHA), 0, 6); goto UJ6OS; muKVA: $KoS8F = bin2hex($c9IkZ); goto c3Vea; XDJXw: $lyajz[] = $fJLzJ; goto a3zbj; DgVUp: $lyajz[] = $K0B1S; goto ws0cA; pwzGh: } public static function expiredDataDecode($BV17G, $m1RYi) { goto g_s5b; HtJe_: if ($fJLzJ != $mNLRy) { return null; } goto XOyti; XOyti: $EPE8u = hexdec($KHNHA); goto QxBD7; nQcoh: if (count($BjMj_) != 5) { return null; } goto V_pC2; uTxzP: return hex2bin($KoS8F); goto TQ5mC; GJoAO: $KHNHA = $BjMj_[3]; goto VnzRB; br672: $K0B1S = $BjMj_[1]; goto eOb5L; eOb5L: $QC81l = $BjMj_[2]; goto GJoAO; g_s5b: $BjMj_ = explode('_', $BV17G); goto nQcoh; nwvMO: $mNLRy = substr(md5($m1RYi . $KoS8F . $K0B1S . $QC81l . $KHNHA), 0, 6); goto HtJe_; VnzRB: $fJLzJ = $BjMj_[4]; goto nwvMO; V_pC2: $KoS8F = $BjMj_[0]; goto br672; QxBD7: if ($EPE8u > 0) { $PVm_Y = hexdec($QC81l); if (time() > $PVm_Y + $EPE8u) { return null; } } goto uTxzP; TQ5mC: } public static function md5WithSalt($IR5F1, $mSl2s) { return md5(md5($IR5F1) . md5($mSl2s)); } }