$enc = trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $sSalt, base64_decode($sCookieId), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)));
$dec = trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $sSalt, $sCookieId, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))));
0 comments:
댓글 쓰기