/** * @param string $sEncodedValues * @param string $sCustomKey = '' * * @return array */ public static function DecodeKeyValues($sEncodedValues, $sCustomKey = '') { $aResult = \unserialize(\RainLoop\Utils::DecryptString(\MailSo\Base\Utils::UrlSafeBase64Decode($sEncodedValues), \md5(APP_SALT . $sCustomKey))); return \is_array($aResult) ? $aResult : array(); }
/** * @param string $sRawKey * @param int | null $iLenCache * @return array | bool */ private function getDecodedClientRawKeyValue($sRawKey, $iLenCache = null) { $mResult = false; if (!empty($sRawKey)) { $sRawKey = \MailSo\Base\Utils::UrlSafeBase64Decode($sRawKey); $aValues = explode("", $sRawKey); if (is_array($aValues) && (null === $iLenCache || $iLenCache === count($aValues))) { $mResult = $aValues; } } return $mResult; }