๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

0xaa1

0x55์™€ 0xAA ๋ฉ”๋ชจ๋ฆฌ ํ•ดํ‚น์— ๋Œ€๋น„ํ•ด ์‚ฌ์šฉ์ž์˜ ๋น„๋ฐ€๋ฒˆํ˜ธ์™€ ๊ฐ™์€ ๊ฐ’์„ String์—์„œ byte[]๋กœ ๋ฐ›์•„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹์„ ์ˆ˜ ์žˆ๋‹ค. ์ด์— ๋”ฐ๋ผ byte[]๋กœ ๋ฐ›์€ ๊ฐ’์€ ์‚ฌ์šฉ์ด ๋๋‚œ ํ›„์— 0x00 ๊ณผ ๊ฐ™์€ ์“ฐ๋ ˆ๊ธฐ ๊ฐ’์œผ๋กœ ๋ฎ์–ด ์“ฐ๋„๋ก ํ•œ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ 0x55 , 0xAA ์™€ ๊ฐ™์€ ๊ฐ’์œผ๋กœ ๋ฎ์–ด ์“ฐ๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋Š”๋ฐ, ์ด ๊ฐ’์ด ๋ญ”๊ฐ€ ํŠน์ •ํ•œ ์˜๋ฏธ๊ฐ€ ์žˆ๋Š” ๊ฐ’์ธ๊ฐ€ ํ•˜์—ฌ ์ฐพ์•„ ๋ดค๋‹ค. ๋งˆ์นจ ๋”ฑ 0x55, 0xAA๋ฅผ ์ •๋ฆฌํ•œ ๋ธ”๋กœ๊ทธ๊ฐ€ ์žˆ์–ด ๊ณต์œ ํ•œ๋‹ค. 0x55๋Š” ๋ฐ”์ด๋„ˆ๋ฆฌ ํ‘œ๊ธฐ๋ฒ•์œผ๋กœ 01010101์ด๋‹ค. 0xAA๋Š” ๋ฐ”์ด๋„ˆ๋ฆฌ ํ‘œ๊ธฐ๋ฒ•์œผ๋กœ 10101010์ด๋‹ค. ์•„๋ž˜์˜ ๋ธ”๋กœ๊ทธ์—์„œ๋„ ์ด ๊ฐ’์ด ํฐ ๋น„๋ฐ€์„ ๊ฐ€์ง„ ๊ฐ’์ด๋ผ๊ณ  ํ•˜์ง€๋Š” ์•Š๋Š”๋‹ค. Out of curiosity, I did some research about 0x55 and 0xAA. It turned.. 2021. 5. 18.