/Encryption_Decryption

๐Ÿ”’ ์•”ํ˜ธํ™”(Encryption)&๋ณตํ˜ธํ™”(Decryption) ํ”„๋กœ์ ํŠธ

Primary LanguageJava

Encryption and Decryption


Base64, Huffman Code, DES(Data Encryption Standard) ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์ด์šฉํ•˜์—ฌ ์•”ํ˜ธํ™” ๋ฐ ๋ณตํ˜ธํ™”๋ฅผ ์ง„ํ–‰ํ•œ๋‹ค.

1. Base64

8๋น„ํŠธ ์ด์ง„๋ฐ์ดํ„ฐ๋ฅผ ASCII ๋ฌธ์ž์—ด๋กœ ๋ฐ”๊พธ๋Š” ๋ฐฉ์‹.

image

2. Huffman Code

์ž…๋ ฅ ํŒŒ์ผ์˜ ๋ฌธ์ž ๋นˆ๋„์ˆ˜๋ฅผ ๊ฐ€์ง€๊ณ  ํŒŒ์ผ์„ ์••์ถ•ํ•˜๋Š” ๋ฐฉ์‹.

3. DES

64๋น„ํŠธ ํ‰๋ฌธ์„ 64๋น„ํŠธ ์•”ํ˜ธ๋ฌธ์œผ๋กœ ์•”ํ˜ธํ™”ํ•˜๋Š” ๋Œ€์นญํ˜• ์•”ํ˜ธํ™” ์•Œ๊ณ ๋ฆฌ์ฆ˜.

๋Œ€์นญํ‚ค ์•”ํ˜ธํ™”๋ž€?

ํ•˜๋‚˜์˜ ํ‚ค๋กœ ์•”ํ˜ธํ™”์™€ ๋ณตํ˜ธ์™€๊ฐ€ ๋ชจ๋‘ ๊ฐ€๋Šฅํ•œ ์–‘๋ฐฉํ–ฅ ์•”ํ˜ธํ™” ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด๋‹ค.

  • ๋‚ด๋ถ€๊ตฌ์กฐ ๋‹จ์ˆœ
  • ๋น„๋Œ€์นญํ‚ค์— ๋น„ํ•ด ์†๋„๊ฐ€ ๋น ๋ฆ„
  • ํ‚ค ๊ด€๋ฆฌ์˜ ์–ด๋ ค์›€
  • ์žฆ์€ ํ‚ค ๋ณ€๊ฒฝ์— ๋ถˆํŽธํ•จ

image