대칭 암호화 Symmetric Encryption

암호화를 통해 정보를 읽을 수 있는 형식에서 해독할 수 없는 형식으로 변경할 수 있습니다. 우리가 데이터를 변경하는 이유는 정보를 듣는 사람들이 키가 없으면 그 내용을 이해하거나 사용할 수 없도록 하기 위해서입니다. 문서가 들어있는 금고와 같다고 생각하면 특정 조합 없이는 사람이 금고를 열 수 없을 것입니다.

Encryption allows us to change information from a readable form to an undecipherable form.  The reason we change the data is so that those that listen in on the information will not be able to understand or use its contents unless they have a key.  Think if it like a safe with documents inside, without a certain combination a person would not be able to open the safe.

데이터 암호화는 은행 금고를 보유하는 것보다 약간 까다롭습니다. 전 세계의 고도로 지능적이고 미친 듯이 빠른 잠금 장치가 금고에 즉시 접근할 수 있다고 상상해 보십시오. 금고에 침입하는 것이 더 쉬울 수도 있습니다. 금고에 1,000,000가지의 다른 가능한 조합이 있다면 복권에 당첨되지 않고 사용자가 열쇠를 추측하는 것은 거의 불가능할 것입니다. 컴퓨터는 암호화된 데이터에 대해 매우 빠르게 1,000,000가지 다른 조합을 시도할 수 있습니다. 암호화 방법에 1,000,000개의 조합만 있는 경우 문제가 발생합니다.

Data encryption is a little bit trickier than having a bank vault.  Imagine if the safe was instantly accessible by highly intelligent and insanely fast lock picks all around the world.  It might be simpler for them to break into the safe.  If a safe had 1,000,000 different possible combinations it would be near impossible for a user to guess the key without winning the lottery so to speak, very unlikely.  Computers can attempt 1,000,000 different combinations against encrypted data very quickly.  This poses a problem if the encryption method only had 1,000,000 combinations.

수학자들은 이론적으로 현재 컴퓨터로는 깨뜨릴 수 없는 암호화를 구축합니다. 내 생각에 일부 정부는 대부분의 최신 암호화 방법을 위반할 수 있으므로 법을 위반하지 않는 목적으로만 이 방법을 사용해야 합니다. 이에 대해서는 아래의 감시 상태 섹션에서 자세히 설명합니다.

Mathematicians build encryption that theoretically cannot be broken by current computers.  My guess is some governments have the ability to break most current encryption methods, so make sure to only use this for purposes that don’t break the law.  I discuss more about this in the State of Surveillance section below.

대칭 암호화 Symmetric Encryption

대칭 암호화는 발신자와 수신자가 동일한 키를 갖는 경우입니다. 송신자는 키로 데이터를 암호화하고 수신자는 동일한 키로 데이터를 복호화합니다.

Symmetric Encryption is where both the sender and receiver have the same key.  The sender encrypts the data with the key and the receiver decrypts the data with the same key.

다음은 암호화 및 복호화를 위한 Java 코드의 예입니다. 바이트가 항상 문자열로 잘 변환되는 것은 아니므로 Base64 인코딩을 위한 유틸리티 메서드도 추가했습니다. 아래 출력은 변환 바이트가 HTML에서 제대로 작동하지 않기 때문에 인코딩된 Base64를 보여줍니다.

Below is example Java code for encryption and decryption.  Bytes don’t always convert well to Strings so I added utility methods for Base64 encoding as well.  The below output just shows the Base64 encoded as the convert bytes don’t work well with HTML.

표준 면책 조항: 아래 코드는 MIT 라이선스에 따라 라이선스가 부여되었으므로 원하는 대로 사용하세요. 이 코드는 예시로 제공된 것이므로 제대로 테스트되거나 100% 작동한다는 보장이 없음을 이해하십시오.

I do not have an international law major

보호는 내가 의지할 수 있는 것

Protection is something I should be able to depend upon

Published by techinfodebug

Flex and Java Developer, Christian, Art, Music, Video, and Vlogging

Leave a comment