// 문자열 암복호화
class str_encrypt_AES256
{
var $encrypt_key;
var $iv;
function __construct(){
$this->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 S24와 함께
새로운 여행이 시작됩니다.
귀하께서는 본 동의 안내 문구를 숙지하였으며, 안내문구에 대해 거절하실 수 있습니다. 단, 거절하신 경우에는 서비스 이용이 제한될 수 있습니다.
모든 약관을 읽고 확인하셨나요?
약관의 내용을 모두 숙지하시고 갤럭시 트래블 To Go 서비스를 이용해 주시기 바랍니다.
| 수집항목 | 수집 목적 | 보유기간 |
|---|---|---|
| 성명, 연락처(휴대전화번호), 성별, 생년월일, 여행일정(출/입국 정보), 대여 희망 장소(인천국제공항 내 여객터미널), 이용자식별값(CI, Connection Information), 마케팅/광고 활용 목적의 개인정보 수집·이용 동의 여부, 광고성 정보 수신 동의 여부 |
- 삼성전자 갤럭시 트래블 To Go 서비스 이벤트 운영 - 본인 확인 - 이벤트 당첨자 선정 - 이벤트 당첨 알림을 위한 문자(MMS 등) 발송 - 고객 문의 대응 - 이벤트 참여고객 구매실적 확인 - 이벤트 관련 내부 통계 분석 |
이벤트 종료 후 3개월까지 |
| 수집항목 | 수집∙이용 목적 | 보유∙이용 기간 |
|---|---|---|
| 성명, 연락처(휴대전화번호), 성별, 생년월일, 여행일정(출/입국 정보), 대여 희망 장소(인천국제공항 내 여객터미널), 이용자식별값(CI, Connection Information), 마케팅/광고 활용 목적의 개인정보 수집·이용 동의 여부, 광고성 정보 수신 동의 여부 |
- 상품 서비스, 사은 판촉행사, 관심 업종 및 제품/솔루션 맞춤형 콘텐츠, 이벤트, 프로모션, 사전 알림 등의 광고성 정보 제공 - 시장조사, 고객만족도조사, 상품∙서비스 개발연구, 접속 빈도 및 고객별 통계분석자료 활용 - TM, SMS/MMS/LMS, DM, E-mail, Push-mail, 카카오 알림톡 등을 통한 사은행사 안내 |
동의 철회 시까지 혹은 이벤트 종료 후 3개월까지 |