encrypt_key = defined('G5_AES256_ENCRYPTION_KEY') ? G5_AES256_ENCRYPTION_KEY : ''; $this->iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc')); } function encrypt($str){ $encryptedText = openssl_encrypt($str, 'aes-256-cbc', $this->encrypt_key , 0, $this->iv); //벡터 데이터와 함께 저장 $encryptedData = base64_encode($encryptedText . '::' . $this->iv); return $encryptedData; } function decrypt($encryptedData){ $returnStr = ''; // 암호화된 데이터를 다시 복호화 list($encryptedText, $iv) = explode('::', base64_decode($encryptedData), 2); if ($iv === false) { $returnStr = ""; }else { $decryptedText = openssl_decrypt($encryptedText, 'aes-256-cbc', $this->encrypt_key, 0, $iv); if ($decryptedText === false) { $returnStr = ""; }else{ $returnStr = $decryptedText; } } return $returnStr; } } // 문자열 암복호화 class str_encrypt_md5 { var $salt; var $length; function __construct($salt='', $type='') { if(!$type) $type = '18'; //echo "md5 알고리즘====>타입[".$type."]
"; if(!$salt){ if($type == '18'){ //echo "여기--->18
"; $this->salt = md5(preg_replace('/[^0-9A-Za-z]/', '8' , $_SERVER['SERVER_SOFTWARE'].$_SERVER['DOCUMENT_ROOT'])); }elseif($type == '24'){ //echo "여기--->24
"; $this->salt = md5(preg_replace('/[^0-9A-Za-z]/', '4' , 'Apache/ttg2024/www' )); }elseif($type == '16'){ //echo "여기--->16
"; $this->salt = md5(preg_replace('/[^0-9A-Za-z]/', '6', 'Apache/blot16/www' )); } }else{ $this->salt = $salt; } $this->length = strlen($this->salt); } function encrypt($str) { $length = strlen($str); $result = ''; for($i=0; $i<$length; $i++) { $char = substr($str, $i, 1); $keychar = substr($this->salt, ($i % $this->length) - 1, 1); $char = chr(ord($char) + ord($keychar)); $result .= $char; } return strtr(base64_encode($result) , '+/=', '._-'); } function decrypt($str) { $result = ''; $str = base64_decode(strtr($str, '._-', '+/=')); $length = strlen($str); for($i=0; $i<$length; $i++) { $char = substr($str, $i, 1); $keychar = substr($this->salt, ($i % $this->length) - 1, 1); $char = chr(ord($char) - ord($keychar)); $result .= $char; } return $result; } } function get_bo_ix_by_bo_hp($user_hp){ global $g5; $query_search = "SELECT * FROM {$g5['tg_booking_order_table']} where bo_status in ('10', '20') "; $result_search = sql_query($query_search); while ($result_row = sql_fetch_array($result_search)) { $decript_bo_hp = get_string_decrypt($result_row['bo_hp']); //echo "decript_bo_hp==>[".$decript_bo_hp."] user_hp==>[".$user_hp."]
"; if ($decript_bo_hp === $user_hp) { $db['bo_ix'] = $result_row['bo_ix']; break; } } return $db['bo_ix']; } function get_class_encrypt_md5($type){ // static $cache2; // // if( $cache2 && is_object($cache2) ){ // return $cache2; // } // 값이 다른 클래스를 반복생성하시 위해 캐쉬 이용 불가 $cache2 = new str_encrypt_md5('',$type); return $cache2; } function get_string_decrypt_md5($str, $type){ //echo "1
"; $new = get_class_encrypt_md5($type); $decrypt_str = $new->decrypt($str); return $decrypt_str; } function get_string_encrypt_md5($str, $type){ //echo "2
"; $new = get_class_encrypt_md5($type); $encrypt_str = $new->encrypt($str); return $encrypt_str; } Galaxy Travel To Go

Galaxy Travel To Go

여행갈땐 나만의 통역사 Galaxy S24와 함께
새로운 시대의 여행을 마음껏 즐겨보세요

모집기준

출발일 기준 : 2024년 2월 5일 (월) ~
도착일 기준 : 2024년 3월 3일 (일)
인천국제공항을 통해 여행을 계획 중이신 누구나
(선착순 모집)

수령장소

제1여객터미널 : 3층 출국장 N구역 22번 데스크
제2여객터미널 : 3층 출국장 E구역 갤럭시 스튜디오

트래블 To Go 예약하기 Galaxy S24의 실시간 통역 / 통역 / 채팅 어시스트 기능은
한국어를 비롯해 독일어, 베트남어, 스페인어, 영어, 이탈리아어,
일본어, 중국어, 태국어, 포르투칼어, 폴란드어, 프랑스어, 힌디어
총 13개 언어로 제공됩니다.