KR20160083823A - Method, server and computer program for transmitting binary data - Google Patents

Method, server and computer program for transmitting binary data Download PDF

Info

Publication number
KR20160083823A
KR20160083823A KR1020160070104A KR20160070104A KR20160083823A KR 20160083823 A KR20160083823 A KR 20160083823A KR 1020160070104 A KR1020160070104 A KR 1020160070104A KR 20160070104 A KR20160070104 A KR 20160070104A KR 20160083823 A KR20160083823 A KR 20160083823A
Authority
KR
South Korea
Prior art keywords
message
code
binary data
bits
sms
Prior art date
Application number
KR1020160070104A
Other languages
Korean (ko)
Other versions
KR101739039B1 (en
Inventor
차재욱
김석홍
박정석
이정욱
Original Assignee
주식회사 케이티
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 케이티 filed Critical 주식회사 케이티
Priority to KR1020160070104A priority Critical patent/KR101739039B1/en
Publication of KR20160083823A publication Critical patent/KR20160083823A/en
Application granted granted Critical
Publication of KR101739039B1 publication Critical patent/KR101739039B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L12/5845
    • H04L12/5895
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for transmitting message comprise steps of: encoding the message using predetermined letter codes; and transmitting the message to a receiver terminal. The letter code expresses each letter as N bit binary data, and N bit can be 12 bit, 13 bit, 14 bit, or 15 bit. The encoding step comprises the steps of: expressing a message in binary data; splitting binary data into N bit binary data; matching the split N bit binary data to corresponding letters of the letter code; and converting the matched letters into 16 bit binary data.

Description

바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램{METHOD, SERVER AND COMPUTER PROGRAM FOR TRANSMITTING BINARY DATA}METHOD, SERVER AND COMPUTER PROGRAM FOR TRANSMITTING BINARY DATA BACKGROUND OF THE INVENTION 1. Field of the Invention [

본 발명은 바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램에 관한 것이다.The present invention relates to a binary data transmission method, a server, and a computer program.

최근, 해킹이나 스미싱 등을 통하여 정보가 유출되는 것을 방지하기 위해 메시지를 암호화하여 보안을 적용하는 경우가 증가하고 있다. 문자 메시지를 암호화하는 경우 문자 메시지는 바이너리 데이터로 표현되며, 바이너리 데이터는 SMS, MMS, 웹과 같은 텍스트 기반 서비스 시스템에서 그대로 전송할 수 없기 때문에 인코딩을 통해 알파벳, 숫자 또는 일반적인 기호 등으로 변환하여 전송하게 된다. 이 때 일반적으로 Base64 코딩 방법을 사용하여 변환하는데, Base64로 변형된 코드를 문자메시지 시스템에서 전달할 때 국내 시스템에서는 한글을 처리하기 위해 UCS2, UTF-16 등으로 변형하게 된다. 이 과정에서 알파벳, 숫자, 일반적인 기호 등 ASCII code에 포함된 부분이 2byte로 처리되어, 해당 부분의 데이터 용량이 2배로 증가하게 된다. In recent years, there has been an increasing tendency to apply security by encrypting messages in order to prevent information from being leaked through hacking or smashing. When encrypting a text message, the text message is represented by binary data. Since the binary data can not be transmitted in a text-based service system such as SMS, MMS, or the web, it is converted into alphabet, numerals, do. In this case, the base64 coding method is generally used for conversion. When the base64 modified code is transmitted in the text message system, UCS2, UTF-16, etc. are processed in the domestic system in order to process Hangul. In this process, the part included in the ASCII code such as alphabets, numbers, and common symbols is processed as 2 bytes, and the data capacity of the corresponding part is doubled.

데이터 암호화 방법과 관련하여, 선행기술인 한국공개특허 제 2008-0018768은 데이터 암호화 방법 및 장치에 관한 것으로서, 데이터 단위 내의 비트 위치에 기초하여 각각의 데이터 단위에 포함된 비트들을 복수의 데이터 블록에 할당하고, 데이터 블록들을 암호화한 후에 암호화된 데이터 블록들을 서로 다른 부호화율에 따라 오류 정정 부호화함으로써 각각의 데이터 단위에서 중요한 비트만을 모아서 별도로 관리하는 구성을 개시하고 있다.In connection with the data encryption method, Korean Unexamined Patent Publication No. 2008-0018768 discloses a data encryption method and apparatus, in which bits included in each data unit are allocated to a plurality of data blocks based on bit positions in the data units , And after encrypting the data blocks, error-correction-encodes the encrypted data blocks according to different coding rates, thereby collecting only important bits in each data unit and managing them separately.

암호화한 메시지의 전달에 있어서 메시지의 용량 증가를 최소화하여 암호화된 메시지를 효율적으로 전송할 수 있는 바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램을 제공하고자 한다. 메시지를 분할하고, 암호화된 메시지의 용량 증가를 최소화하여 SMS(Short Message Service), LMS(Long Message Service) 또는 MMS(Multimedia Message Service)로 전송하도록 하는 바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램을 제공하고자 한다. 문자 메시지 전송 시스템에서 바이너리 데이터를 효율적으로 전송할 수 있는 바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램을 제공하고자 한다. 기존의 문자 메시지 전송 시스템과 호환성이 유지되는 바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램을 제공하고자 한다. 기존의 암호화 알고리즘을 그대로 적용할 수 있는 바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램을 제공하고자 한다. A server and a computer program capable of efficiently transmitting an encrypted message by minimizing a capacity increase of a message in the transmission of an encrypted message. A server and a computer program for dividing a message and minimizing an increase in capacity of an encrypted message and transmitting the message to a Short Message Service (SMS), a Long Message Service (LMS), or a Multimedia Message Service (MMS) do. A binary data transmission method, a server, and a computer program capable of efficiently transmitting binary data in a text message transmission system. A server, and a computer program in which compatibility with a conventional text message transmission system is maintained. A binary data transmission method, a server and a computer program which can apply the existing encryption algorithm as it is.

상술한 기술적 과제를 달성하기 위한 기술적 수단으로서, 본 발명의 일 실시예는 메시지를 전송하는 방법에 있어서, 상기 메시지를 기설정된 문자 코드를 이용해서 인코딩하는 단계 및 상기 메시지를 수신 단말로 전송하는 단계를 포함하되, 상기 문자 코드는 문자를 N 비트의 바이너리 데이터로 표현한 것이고, 상기 N 비트는 12 비트, 13 비트, 14 비트 또는 15 비트 중 어느 하나이고, 상기 인코딩하는 단계는, 상기 메시지를 바이너리 데이터로 표현하는 단계. 상기 바이너리 데이터를 N 비트 바이너리 데이터로 분할하는 단계, 상기 분할된 N 비트 바이너리 데이터를 상기 문자 코드의 대응하는 문자에 매칭하는 단계 및 상기 매칭된 문자를 16비트 바이너리 데이터로 변환하는 단계를 포함하는 것인, 메시지 전송 방법을 제공할 수 있다. According to an aspect of the present invention, there is provided a method of transmitting a message, the method including: encoding the message using a predetermined character code; and transmitting the message to a receiving terminal Wherein the character code is a character representation of N bits of binary data, and the N bits are any one of 12 bits, 13 bits, 14 bits, or 15 bits, and the encoding step comprises: . The method comprising the steps of: dividing the binary data into N-bit binary data; matching the divided N-bit binary data to a corresponding character of the character code; and converting the matched character into 16-bit binary data , A message transmission method can be provided.

또한, 본 발명의 다른 실시예는 단말과 결합되어 메시지를 전송하기 위하여 매체에 저장된 컴퓨터 프로그램으로서, 상기 메시지를 기설정된 문자 코드를 이용해서 인코딩하고, 상기 메시지를 수신 단말로 전송하도록 하는 명령어들의 시퀀스를 포함하되, 상기 문자 코드는 문자를 N 비트의 바이너리 데이터로 표현한 것이고, 상기 N 비트는 12 비트, 13 비트, 14 비트 및 15 비트 중 어느 하나이고, 상기 컴퓨터 프로그램은, 상기 메시지를 바이너리 데이터로 표현하고, 상기 바이너리 데이터를 N 비트 바이너리 데이터로 분할하고, 상기 분할된 N 비트 바이너리 데이터를 상기 문자 코드의 대응하는 문자에 매칭하고, 상기 매칭된 문자를 16비트 바이너리 데이터로 변환하도록 하는 명령어들의 시퀀스를 더 포함하는 것인, 컴퓨터 프로그램을 제공할 수 있다. Another embodiment of the present invention is a computer program stored in a medium for transmitting a message in combination with a terminal, the computer program comprising a sequence of instructions for encoding the message using a predetermined character code and for transmitting the message to a receiving terminal Wherein the character code is a character representation of N bits of binary data and the N bits are any one of 12 bits, 13 bits, 14 bits, and 15 bits, and wherein the computer program causes the message to be converted into binary data A sequence of instructions to divide the binary data into N-bit binary data, to match the divided N-bit binary data to a corresponding character in the character code, and to convert the matched character into 16-bit binary data And a computer program product.

또한, 본 발명의 또 다른 실시예는, 메시지를 전송하는 서버에 있어서, 상기 메시지를 기설정된 문자 코드를 이용해서 인코딩하는 인코딩부 및 상기 메시지를 수신 단말로 전송하는 전송부를 포함하되, 상기 문자 코드는 문자를 N 비트의 바이너리 데이터로 표현한 것이고, 상기 N 비트는 12 비트, 13 비트, 14 비트 및 15 비트 중 어느 하나이고, 상기 인코딩부는, 상기 메시지를 바이너리 데이터로 표현하고, 상기 바이너리 데이터를 N 비트 바이너리 데이터로 분할하고, 상기 분할된 N 비트 바이너리 데이터를 상기 문자 코드의 대응하는 문자에 매칭하고, 상기 매칭된 문자를 16비트 바이너리 데이터로 변환하는 것인, 메시지 전송 서버를 제공할 수 있다.According to another embodiment of the present invention, there is provided a server for transmitting a message, comprising: an encoding unit encoding the message using a predetermined character code; and a transmitting unit transmitting the message to a receiving terminal, Wherein the N bits are represented by 12 bits, 13 bits, 14 bits, and 15 bits, and the encoding unit expresses the message as binary data and converts the binary data into N Bit binary data, the divided N-bit binary data is matched with the corresponding character of the character code, and the matched character is converted into 16-bit binary data.

상술한 과제 해결 수단은 단지 예시적인 것으로서, 본 발명을 제한하려는 의도로 해석되지 않아야 한다. 상술한 예시적인 실시예 외에도, 도면 및 발명의 상세한 설명에 기재된 추가적인 실시예가 존재할 수 있다.The above-described task solution is merely exemplary and should not be construed as limiting the present invention. In addition to the exemplary embodiments described above, there may be additional embodiments described in the drawings and the detailed description of the invention.

전술한 본 발명의 과제 해결 수단 중 어느 하나에 의하면, 메시지의 암호화에 있어서 메시지의 용량 증가를 최소화하여 암호화된 메시지를 효율적으로 전송할 수 있는 바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램을 제공할 수 있다. (SMS 용량을 초과하는 메시지의 경우) 메시지를 분할하고, 암호화된 메시지의 용량 증가를 최소화하여 전송하도록 하는 바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램을 제공할 수 있다. 기존의 문자 메시지 전송 시스템과 호환성이 유지되되고, 기존의 암호화 알고리즘을 그대로 적용할 수 있는 바이너리 데이터 전송 방법, 서버 및 컴퓨터 프로그램을 제공할 수 있다. According to any one of the above-mentioned objects of the present invention, it is possible to provide a binary data transmission method, a server, and a computer program capable of efficiently transmitting an encrypted message by minimizing a capacity increase of a message in encryption of a message. A server, and a computer program for dividing a message (in the case of a message exceeding the SMS capacity) and minimizing an increase in capacity of an encrypted message and transmitting the message. A binary data transmission method, a server and a computer program which can maintain the compatibility with the existing text message transmission system and can apply the existing encryption algorithm can be provided.

도 1은 본 발명의 일 실시예에 따른 메시지의 전송 방법을 나타낸 흐름도이다.
도 2는 종래 기술로서의 암호화 메시지(바이너리 데이터)의 인코딩 방법을 설명하기 위한 도면이다.
도 3은 본 발명의 일 실시예에 따른 한글 코드를 이용한 인코딩 방법을 설명하기 위한 도면이다.
도 4는 본 발명의 일 실시예에 따른 한글 코드를 이용한 인코딩 방법을 추가 설명하기 위한 도면이다.
도 5는 본 발명의 다른 실시예에 따른 한자 코드를 이용한 인코딩 방법을 설명하기 위한 도면이다.
도 6은 본 발명의 또 다른 실시예에 따른 한글 코드와 한자 코드의 혼합 코드를 이용한 인코딩 방법을 설명하기 위한 도면이다.
도 7은 본 발명의 또 다른 실시예에 따른 한글 코드와 한자 코드의 혼합 코드를 이용한 인코딩 방법을 추가 설명하기 위한 도면이다.
도 8은 본 발명의 일 실시예에 따른 한글 코드를 이용하여 인코딩된 메시지를 복호화하는 과정을 설명하기 위한 도면이다.
도 9는 본 발명의 일 실시예에 따른 인코딩 방법에 따른 메시지 전송 효율성을 비교한 도면이다.
도 10은 본 발명의 일 실시예에 따른 메시지 전송 서버의 구성도이다.
도 11은 본 발명의 일 실시예에 따라 생성된 SMS 메시지를 설명하기 위한 도면이다.
1 is a flowchart illustrating a method of transmitting a message according to an exemplary embodiment of the present invention.
2 is a diagram for explaining a conventional method of encoding an encrypted message (binary data).
3 is a diagram for explaining an encoding method using a Hangul code according to an embodiment of the present invention.
4 is a diagram for further illustrating an encoding method using a Hangul code according to an embodiment of the present invention.
5 is a diagram for explaining an encoding method using a Hanja code according to another embodiment of the present invention.
6 is a diagram for explaining an encoding method using a mixed code of a Hangul code and a Hanja code according to another embodiment of the present invention.
7 is a diagram for further illustrating an encoding method using a mixed code of a Hanja code and a Hanja code according to another embodiment of the present invention.
8 is a diagram for explaining a process of decoding a message encoded using a Hangul code according to an embodiment of the present invention.
9 is a view for comparing message transmission efficiency according to an encoding method according to an embodiment of the present invention.
10 is a configuration diagram of a message transmission server according to an embodiment of the present invention.
11 is a view for explaining an SMS message generated according to an embodiment of the present invention.

아래에서는 첨부한 도면을 참조하여 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 본 발명의 실시예를 상세히 설명한다. 그러나 본 발명은 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시예에 한정되지 않는다. 그리고 도면에서 본 발명을 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략하였으며, 명세서 전체를 통하여 유사한 부분에 대해서는 유사한 도면 부호를 붙였다. Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings, which will be readily apparent to those skilled in the art. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. In order to clearly illustrate the present invention, parts not related to the description are omitted, and similar parts are denoted by like reference characters throughout the specification.

명세서 전체에서, 어떤 부분이 다른 부분과 "연결"되어 있다고 할 때, 이는 "직접적으로 연결"되어 있는 경우뿐 아니라, 그 중간에 다른 소자를 사이에 두고 "전기적으로 연결"되어 있는 경우도 포함한다. 또한 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있는 것을 의미하며, 하나 또는 그 이상의 다른 특징이나 숫자, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다. Throughout the specification, when a part is referred to as being "connected" to another part, it includes not only "directly connected" but also "electrically connected" with another part in between . Also, when an element is referred to as "including" an element, it is to be understood that the element may include other elements as well as other elements, And does not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.

본 명세서에 있어서 '부(部)'란, 하드웨어에 의해 실현되는 유닛(unit), 소프트웨어에 의해 실현되는 유닛, 양방을 이용하여 실현되는 유닛을 포함한다. 또한, 1 개의 유닛이 2 개 이상의 하드웨어를 이용하여 실현되어도 되고, 2 개 이상의 유닛이 1 개의 하드웨어에 의해 실현되어도 된다.In this specification, the term " part " includes a unit realized by hardware, a unit realized by software, and a unit realized by using both. Further, one unit may be implemented using two or more hardware, or two or more units may be implemented by one hardware.

본 명세서에 있어서 단말 또는 디바이스가 수행하는 것으로 기술된 동작이나 기능 중 일부는 해당 단말 또는 디바이스와 연결된 서버에서 대신 수행될 수도 있다. 이와 마찬가지로, 서버가 수행하는 것으로 기술된 동작이나 기능 중 일부도 해당 서버와 연결된 단말 또는 디바이스에서 수행될 수도 있다.In this specification, some of the operations or functions described as being performed by the terminal or the device may be performed in the server connected to the terminal or the device instead. Similarly, some of the operations or functions described as being performed by the server may also be performed on a terminal or device connected to the server.

이하 첨부된 도면을 참고하여 본 발명의 일 실시예를 상세히 설명하기로 한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 일 실시예에 따른 메시지 전송 서버에서의 메시지의 전송 방법을 나타낸 흐름도이다. 도 1을 참조하면, 단계 S120에서 메시지를 암호화하거나 또는 바이너리 데이터(이미지 등)를 입력받는다. 암호화한 메시지는 바이너리 데이터로 표현된다. 본 발명에서는 메시지의 암호화 방법이나 암호키의 형식은 특정 방법으로 제한하지 않으며, 공개키, 대칭키, 혼합형, OTP 방식 등을 포함할 수 있다. 1 is a flowchart illustrating a method of transmitting a message in a message transmission server according to an embodiment of the present invention. Referring to FIG. 1, in step S120, a message is encrypted or binary data (image, etc.) is input. Encrypted messages are represented by binary data. In the present invention, the message encryption method and the encryption key format are not limited to specific methods, and may include a public key, a symmetric key, a hybrid type, an OTP scheme, and the like.

메시지를 암호화하는 경우, 암호화 방식에 따라 암호화 후 메시지의 길이가 증가될 수 있다. 예컨대 블록 암호화의 경우 블록의 사이즈에 맞춘 길이에 따라 메시지의 길이가 증가할 수 있다. 암호화 처리 단말은 발신 폰, 발신 서버, 중계 서버 등 구조에 따라 변경 가능하며 본 발명에 있어서 특정 단말로 제한하지 않는다. When encrypting a message, the length of the encrypted message may be increased according to the encryption scheme. For example, in the case of block encryption, the length of the message may increase according to the length of the block. The encryption processing terminal can be changed according to the structure such as the originating phone, the origin server, the relay server, etc., and is not limited to a specific terminal in the present invention.

단계 S140에서 암호화된 메시지 또는 입력된 바이너리 데이터를 인코딩한다. 본 발명의 일 실시예에서는 기설정된 문자 코드를 이용하여 메시지를 인코딩할 수 있다. 기설정된 문자 코드는 코드 변환시 2바이트 중 12비트 이상을 사용하는 문자 코드로서 한글 코드, 한자 코드, 한글 코드와 한자 코드의 혼합 코드를 포함할 수 있으나 이에 제한되지 않는다. In step S140, the encrypted message or the inputted binary data is encoded. In an embodiment of the present invention, a message can be encoded using a predetermined character code. The predetermined character code may include, but is not limited to, a Hangul code, a Hanja code, and a mixed code of Hangul code and Hanja code as character codes using more than 12 bits of 2 bytes at the time of code conversion.

암호화된 메시지는 바이너리 데이터로 표현되며 바이너리 데이터는 그 자체로 텍스트 기반의 서비스 시스템에서 전송할 수 없기 때문에 텍스트 기반의 서비스 시스템에서 전송할 수 있도록 알파벳, 한글 등의 문자로 전환하는 인코딩을 수행한다. Encrypted messages are represented as binary data, and since binary data can not be transmitted in a text-based service system by itself, encoding is performed so as to be converted into characters such as alphabets and Korean characters for transmission in a text-based service system.

이러한 인코딩 방법과 관련하여, 종래 기술에 따른 인코딩 방법과 본 발명의 일 실시예에 따른 한글 코드, 한자 코드 및 혼합 코드를 이용한 인코딩 방법은 이하 도 2 내지 도 7을 참조하여 상세히 설명하도록 한다. The encoding method according to the related art and the encoding method using Hangul code, Hanja code and mixed code according to an embodiment of the present invention will be described in detail with reference to FIG. 2 to FIG.

단계 S160에서, 메시지를 기설정된 길이로 분할하여 SMS(Short Message Service) 메시지, LMS(Long Message Service) 메시지 또는 MMS(Multimedia Message Service) 메시지를 생성한다. 이하에서는, SMS 메시지를 중심으로 설명하도록 한다. 메시지의 분할 길이는 SMS 메시지로 전송 가능한 용량 범위 내에서 설정할 수 있다. 메시지는 암호화 부분과 평문 부분을 포함하는 메시지일 수 있으며, 암호화 부분을 평문 부분과 함께 보냄으로써 사용자가 수신된 문자의 평문 부분을 보고 복호화 전에도 문자의 내용을 예상할 수 있도록 할 수 있다. In step S160, the message is divided into predetermined lengths to generate a Short Message Service (SMS) message, a Long Message Service (LMS) message, or a Multimedia Message Service (MMS) message. Hereinafter, the SMS message will be mainly described. The division length of the message can be set within the capacity range that can be transmitted by the SMS message. The message may be a message that includes an encryption portion and a plain portion, and the user may view the plain portion of the received character by predicting the contents of the character before decrypting by sending the encryption portion along with the plain portion.

생성된 SMS 메시지는 암호화 부분과 평문 부분을 구분하는 태그(Tag), 첫 번째 SMS와 두 번째 이 후의 SMS를 구분하는 플래그(Flag), SMS의 순서를 나타내는 인덱스(Index), 메시지의 전체 길이 및 분할된 메시지의 길이 등을 포함할 수 있으나 이에 제한되지 않는다.The generated SMS message includes a tag for distinguishing the encrypted portion and the plain text portion, a flag for distinguishing the first SMS and the second SMS, an index indicating the order of SMS, an overall length of the message, The length of the segmented message, and the like.

본 발명의 일 실시예에서는 태그, 플래그, 전체 길이 및 분할된 길이를 포함하여 첫 번째 SMS 메시지를 생성하고, 태그, 플래그, 인덱스 및 분할된 길이를 포함하여 두 번째 이후의 SMS 메시지를 생성할 수 있으나 이에 제한되지 않는다. In an embodiment of the present invention, a first SMS message including a tag, a flag, an entire length and a divided length may be generated, and a second and subsequent SMS messages including a tag, a flag, an index and a divided length may be generated But is not limited thereto.

태그, 플래그 등의 삽입 순서는 구현 편이성에 따라 변경될 수 있으며, 평문 부분에 일정 규칙을 정해서 평문 부분이 태그 기능을 대체하도록 하는 것도 가능하다. 헤더에 보안 문자를 지정하는 경우에는 태그, 플래그, 길이 등을 헤더에 기재할 수 있다. 한 수신자에게 다수의 보안 메시지를 동시에 보내는 경우에는 보안 메시지들 간의 구분이 가능하도록 SMS 메시지에 [msg_id] 등을 추가로 삽입할 수도 있다. The insertion order of tags, flags, etc., can be changed according to the ease of implementation, and it is also possible to set a rule in the plain text part so that the plain text part replaces the tag function. When a CAPTCHA is specified in the header, the tag, flag, length, and the like can be described in the header. When multiple security messages are simultaneously sent to one recipient, [msg_id], etc., may be inserted in the SMS message so that security messages can be distinguished.

메시지가 SMS 용량을 초과하는 경우에 MMS로 전송하는 것이 아닌 메시지를 분할하여 SMS 메시지로 전송함으로써 어느 한 쪽의 단말이 데이터 네트워크 등에 연결되어 있지 않은 경우에도 메시지를 전송할 수 있다. 상술한 설명에서는 SMS를 예시로 들고 있으나, 같은 방법으로 LMS 및 MMS 등에서도 사용 가능하다.If the message exceeds the capacity of the SMS, the message is transmitted not by the MMS but by the SMS message, so that the message can be transmitted even when one of the terminals is not connected to the data network or the like. Although SMS is exemplified in the above description, it can be used in LMS and MMS in the same way.

단계 S180에서, 생성된 SMS/MMS/LMS 메시지를 전송한다. SMS/MMS/LMS 메시지의 전송은 기존의 메시지 전송 시스템을 이용하여 전송할 수 있으며, 수신 단말은 분할된 메시지를 수신하여 하나의 암호화 메시지로 결합하고 이를 복호화할 수 있다. In step S180, the generated SMS / MMS / LMS message is transmitted. The transmission of the SMS / MMS / LMS message can be performed using an existing message transmission system, and the receiving terminal can receive the divided message and combine it into one encrypted message and decode it.

상술한 설명에서, 단계 S120 내지 S180은 본 발명의 구현예에 따라서, 추가적인 단계들로 더 분할되거나, 더 적은 단계들로 조합될 수 있다. 또한, 일부 단계는 필요에 따라 생략될 수도 있고, 단계 간의 순서가 변경될 수도 있다.In the above description, steps S120 to S180 may be further divided into further steps or combined into fewer steps, according to an embodiment of the present invention. Also, some of the steps may be omitted as necessary, and the order between the steps may be changed.

이하에서는 도 2 내지 도 7을 참조하여 메시지의 인코딩 방법을 상세히 설명하도록 한다. Hereinafter, a method of encoding a message will be described in detail with reference to FIG. 2 to FIG.

도 2는 종래 기술로서의 메시지 인코딩 방법을 설명하기 위한 도면이다. 도 2를 참조하면, 단계 S200 및 S220에서 일반 문자 메시지를 암호화 한다. 암호화된 메시지는 바이너리 데이터로 표현되며, 단계 S240에서 Base 64 테이블을 이용하여 바이너리 데이터를 알파벳, 숫자 및 2개의 기호(+, /)로 전환하는 Base64 전환을 수행한다. Base 64 테이블은 6비트의 바이너리들 각각에 대해 서로 다른 알파벳, 숫자 및 기호들을 매칭시키고 있다. 따라서, 암호화된 바이너리 데이터의 나열을 6비트씩 할당하고, Base 64 테이블에 각 6 비트에 해당하는 알파벳, 숫자 및 기호로 매칭시켜 바이너리 데이터를 알파벳 등의 문자로 표현할 수 있다. 컴퓨터는 바이너리 데이터를 8비트(1바이트) 단위로 처리하므로, 해당 알파벳, 숫자 및 기호를 다시 아스키 코드(알파벳, 숫자 및 기호들을 8비트의 바이너리에 매칭하고 있음)에 대응시켜 알파벳, 숫자 및 기호를 8비트의 바이너리로 표현되도록 한다. 이 과정에서 6비트의 바이너리 데이터를 8비트로 표현하므로 메시지의 용량이 8/6배 증가한다. 2 is a diagram for explaining a message encoding method as a conventional technique. Referring to FIG. 2, in steps S200 and S220, a general text message is encrypted. The encrypted message is represented by binary data. In step S240, Base64 conversion is performed to convert the binary data into alphabets, numbers, and two symbols (+, /) using the Base 64 table. The Base 64 table matches different alphabets, numbers, and symbols for each of the 6-bit binaries. Therefore, the encrypted binary data is arranged in six bits, and the binary data is matched to the Base 64 table with alphabets, numbers, and symbols corresponding to the six bits, so that the binary data can be represented by letters such as alphabets. Since the computer processes binary data in units of 8 bits (1 byte), the corresponding alphabet, number, and symbol are re-matched to the ASCII code (alphabet, number, and symbols are matched to 8-bit binary) To be represented by an 8-bit binary. In this process, since the 6-bit binary data is represented by 8 bits, the capacity of the message is increased by 8/6 times.

메시지가 숫자와 알파벳만을 포함하는 경우에는 아스키 코드로 전환하여 전송할 수 있으나, 메시지가 알파벳, 숫자 및 기호 외의 한글 등을 포함하는 경우, 한글을 아스키 코드에 대응시킬 수 없기 때문에 UCS2 코드 등 한글을 포함하는 코드를 이용하여 다시 전환을 수행하여야 한다. 따라서, 단계 S260에서 Base 64 전환된 메시지에 다시 UCS2 코드를 이용해 UCS2 전환을 수행한다. UCS2 코드는 텍스트 기반 시스템에서 한글을 처리하기 위해 일반적으로 사용되는 호환 코드로서, 2바이트(=16비트)의 바이너리 각각에 대해 알파벳, 한글 등의 문자를 매칭시키고 있다. UCS2 전환 시 메시지의 각 문자들이 각각 2바이트 바이너리로 표현되기 때문에 8 비트(1 바이트)에 대응되던 각 문자가 16 비트로 표현됨으로써 메시지의 암호화 부분의 문자 용량이 2배로 증가하게 된다. If the message contains only numbers and alphabets, it can be converted to ASCII code. However, if the message contains characters other than alphabets, numbers and symbols, it can not correspond to ASCII codes. The user must perform the conversion again using the code shown in FIG. Therefore, the UCS2 conversion is performed again using the UCS2 code in the base 64 switched message in step S260. The UCS2 code is a compatible code commonly used for processing Hangul in a text-based system, and matches characters such as alphabets and Hangul characters for each binary of 2 bytes (= 16 bits). Since each character of a message is represented by a 2-byte binary at the time of UCS2 conversion, each character corresponding to 8 bits (1 byte) is represented by 16 bits, thereby doubling the character capacity of the encrypted portion of the message.

단계 S280에서 UCS2 전환된 메시지를 수신 단말로 전송한다. In step S280, the UCS2 switched message is transmitted to the receiving terminal.

도면 부호 200을 참조하여, 각각의 전환을 바이너리 데이터 측면에서 살펴보면, 암호화 후 메시지는 바이너리 데이터로 나열되며, 나열된 바이너리 데이터를 6비트씩 할당하여 Base 64 변환을 위한 6비트 배열을 생성한다. 생성된 6비트 배열은 Base 64 테이블의 알파벳, 숫자 및 기호에 매칭되고, 매칭된 알파벳, 숫자 및 기호들은 아스키 코드에 대응하는 8비트의 바이너리로 표현된다. 따라서 이 과정에서 메시지의 용량은 8/6배 증가한다. 이 후, 메시지가 한글을 포함하여 UCS2 전환하는 경우, 각 문자는 UCS2 코드에 대응하는 2바이트(16비트)의 바이너리로 표현되며, 따라서 메시지의 용량은 Base 64 변환된 것의 2배가 된다.Referring to the reference numeral 200, in the binary data aspect, the encrypted message is listed as binary data, and six bits of the listed binary data are allocated to generate a six bit array for Base 64 conversion. The generated 6-bit arrays match the alphabets, numbers, and symbols in the Base 64 table, and the matched letters, numbers, and symbols are represented in 8-bit binary corresponding to the ASCII code. Therefore, in this process, the message capacity increases 8/6 times. Then, when the message is converted to UCS2 including Hangul, each character is represented by a 2-byte (16-bit) binary corresponding to the UCS2 code, so that the capacity of the message is doubled from that of Base64 conversion.

상술한 바와 같이 종래 기술로서의 인코딩 방법은 암호화된 바이너리 데이터를 Base64 변환 후 다시 UCS2 전환하여 결과적으로 6비트의 바이너리를 전송하는데 16비트를 사용하게 되며 따라서, 전송 시 비트 효율이 6/16으로서 비효율적이다. 이하에서는 16 비트 중 12 비트 이상을 사용하는, 즉 전송 시 비트 효율이 12/16 이상인 본원 발명의 일 실시예에 따른 인코딩 방법을 설명하도록 한다. As described above, in the conventional encoding method, 16 bits are used to convert the encrypted binary data to the UCS2 after conversion to Base64 and consequently to transfer the 6 bits of binary. Therefore, the bit efficiency at transmission is 6/16, which is inefficient . Hereinafter, an encoding method according to an embodiment of the present invention using 12 bits or more out of 16 bits, that is, a bit efficiency at transmission is 12/16 or more will be described.

도 3은 본 발명의 일 실시예에 따른 한글 코드를 이용한 인코딩 방법을 설명하기 위한 도면이다. 도 3을 참조하면, 단계 S300 및 S320에서 입력된 메시지는 암호화되며, 이 과정은 도 2에 도시된 종래 기술과 유사하다. 이 후 단계 S340에서 암호화된 메시지를 한글 코드를 이용해 인코딩한다. 3 is a diagram for explaining an encoding method using a Hangul code according to an embodiment of the present invention. Referring to FIG. 3, the messages input in steps S300 and S320 are encrypted, and this process is similar to the prior art shown in FIG. Thereafter, in step S340, the encrypted message is encoded using Hangul code.

단계 S340의 한글 코드 전환의 과정을 도면 부호 300을 참조하여 설명하도록 한다. 암호화된 바이너리 데이터를 12 비트 단위로 분할하고(302), 12비트의 바이너리 각각을 한글 문자에 매칭시키고 매칭된 한글 문자를 USC2 코드에서 대응하는 16 비트의 바이너리로 표현한다. 본 발명의 일 실시예에 따른 한글 코드를 이용한 인코딩의 경우 종래 기술에서의 Base 64 전환 과정(304)은 무시된다. 한글 코드를 이용한 인코딩의 경우 12비트를 전송하는데 16비트를 사용하므로 메시지의 전송 효율은 12/16이다.The procedure of the Hangul code conversion in step S340 will be described with reference to the reference numeral 300. [ The encrypted binary data is divided into units of 12 bits (302). Each of the 12 bits of binary data is matched to the Hangeul character and the matched Hangeul character is represented by corresponding 16 bits of binary code in the USC2 code. In the case of the encoding using the Hangul code according to an embodiment of the present invention, the Base 64 conversion process 304 in the prior art is ignored. In the case of encoding using Hangul code, the transmission efficiency of the message is 12/16 because it uses 16 bits to transmit 12 bits.

한글 코드는 11172개의 한글 문자를 포함하고 있으며, < 11172 < 이므로, 한글코드를 이용하면 최대 13비트까지 표현할 수 있다. 도 3에 도시된 일 실시예에서는 12비트 단위로 분할하여 한글 코드에 매칭시키는 경우를 설명하고 있으나, 13비트 단위로 분할하여 한글 코드에 매칭시킬 수도 있으며 이 경우 12비트로 분할하는 경우보다 더 효율적으로 메시지를 전송할 수 있다. The Hangul code contains 11172 Hangul characters, <11172 <, so that up to 13 bits can be expressed using Hangul code. In the embodiment shown in FIG. 3, a case where the code is divided into units of 12 bits and is matched to the code is described. However, the unit may be divided into units of 13 bits and matched to the code. In this case, Message can be transmitted.

다음으로 단계 S360에서 UCS2전환을 수행 한다. S340에서 한글 코드로 전환 시 이미 제로 패딩을 통해 한 문자당 16비트를 사용하고 있었으므로, UCS2 전환을 수행하더라도 별도의 메시지 용량 증가는 발생하지 않는다. 이 후 단계 380에서 메시지를 전송한다. 이하 도 4를 참조하여 한글 코드를 이용한 인코딩 방법을 보다 상세히 설명하도록 한다. Next, UCS2 conversion is performed in step S360. Since the 16 bits are used per character through zero padding when switching from Hangul to S340, there is no increase in message capacity even if UCS2 conversion is performed. Thereafter, in step 380, a message is transmitted. Hereinafter, an encoding method using Hangul codes will be described in more detail with reference to FIG.

도 4는 본 발명의 일 실시예에 따른 한글 코드를 이용한 인코딩 방법을 추가 설명하기 위한 도면이다. 도 4를 참조하면, 암호화 후 나열된 바이너리 데이터를 12비트씩 분할한다(400). 컴퓨터는 바이트 단위로 바이너리 데이터를 처리하므로 분할된 12비트의 바이너리에 4비트의 제로를 패딩하여 2바이트(16비트)의 바이너리 배열을 생성한다(420, 440). 이 후, 0~4095까지의 바이너리 데이터를 한글 코드(460)에 순서대로 매칭시킨 후, 분할된 2바이트 바이너리를 대응하는 한글 문자로 표시할 수 있다. 표시된 한글 문자를 UCS2 코드표에 대응하는 2바이트의 바이너리 데이터로 표현하는 과정에서 바이너리 데이터의 배열은 달라지나(480) 메시지 용량은 변화하지 않는다.4 is a diagram for further illustrating an encoding method using a Hangul code according to an embodiment of the present invention. Referring to FIG. 4, the binary data listed after encryption is divided by 12 bits (400). Since the computer processes the binary data in units of bytes, a 2-byte (16-bit) binary array is generated by padding 4-bit zeros to the divided 12-bit binary data (420, 440). Thereafter, the binary data from 0 to 4095 are sequentially matched to the Hangul code 460, and then the divided 2-byte binary can be displayed in the corresponding Hangul character. In the process of representing the displayed Hangul characters as 2 bytes of binary data corresponding to the UCS2 code table, the arrangement of binary data is different (480) but the message capacity does not change.

상술한 바와 같이, 한글 코드를 이용하여 인코딩하는 경우, 메시지 용량이 16/12배 증가하고, 이 후 UCS2 코드로 전환하더라도 추가적인 메시지 용량 증가가 없으므로, 전송 효율은 12/16으로 종래의 인코딩 방법보다 전송 효율이 증가하는 것을 알 수 있다. 바이너리 데이터를 13비트 단위로 분할하여 한글 코드에 매칭시키는 경우에는 전송 효율이 13/16으로 더 효율적으로 전송이 가능하다. As described above, in the case of encoding using the Hangul code, since the message capacity is increased by 16/12 times and there is no increase in the message capacity even after switching to the UCS2 code, the transmission efficiency is 12/16, It can be seen that the transmission efficiency is increased. When the binary data is divided into units of 13 bits and matched to Hangul codes, the transmission efficiency is 13/16, which enables more efficient transmission.

도 5는 본 발명의 다른 실시예에 따른 한자 코드를 이용한 인코딩 방법을 설명하기 위한 도면이다. 도 5를 참조하면, 단계 S500 및 S520에서 메시지를 암호화하며 여기까지의 과정은 종래기술과 유사하다. 단계 S540에서 한자 코드를 이용하여 인코딩한다. 한자 코드의 경우 바이너리 데이터를 최대 14비트까지 표현할 수 있다. 따라서, 도면부호 500을 참조하면, 암호화 후 나열된 바이너리 데이터를 14비트씩 분할한 뒤, 2비트의 제로를 패딩하여 한자 코드에 매칭시킬 수 있다. 이 때 2비트의 제로 패딩으로 인해 메시지의 용량이 16/14배 증가한다. 한자 코드를 이용한 인코딩 방법의 경우에도 Base 64 전환 과정은 무시된다(504). 매칭된 한자들은 UCS2 코드로 표현되는 과정에서 바이너리 데이터의 배열이 달라지나 메시지의 용량은 증가되지 않는다(506). 한자 코드를 이용하는 경우, 14비트의 바이너리를 전송하는데 16비트가 이용되므로 전송 효율은 14/16으로 종래의 기술 및 한글 코드를 이용한 경우보다 전송 효율이 향상된 것을 알 수 있다. 5 is a diagram for explaining an encoding method using a Hanja code according to another embodiment of the present invention. Referring to FIG. 5, a message is encrypted in steps S500 and S520, and the process up to here is similar to the prior art. In step S540, encoding is performed using the Hanja code. In the case of Hanja code, binary data can be expressed up to 14 bits. Therefore, referring to reference numeral 500, binary data listed after encryption may be divided into 14 bits, and then 2-bit zeros may be padded to match a Chinese character code. At this time, the message capacity increases by 16/14 times due to 2-bit zero padding. Even in the case of the encoding method using the Hanja code, the Base 64 conversion process is ignored (504). The matched kanji are represented by UCS2 code, but the capacity of the message is not increased (506). In the case of using the Hanja code, 16 bits are used for transmitting 14 bits of binary, so that the transmission efficiency is 14/16, which means that the transmission efficiency is improved as compared with the case using the conventional technology and Hangul code.

도 6은 본 발명의 또 다른 실시예에 따른 한글 코드와 한자 코드의 혼합 코드를 이용한 인코딩 방법을 설명하기 위한 도면이다. 도 6을 참조하면, 단계 S600 및 S620에서 종래 기술과 동일한 기술로 메시지를 암호화하고, 단계 S640에서 한글 코드와 한자 코드의 혼합 코드를 이용해 암호화된 메시지를 인코딩할 수 있다. 혼합 코드는 바이너리 데이터를 최대 15비트까지 표현할 수 있다. 도면 부호 600을 참조하면 암호화된 바이너리 데이터를 15비트 단위로 분할한다(602). 이 경우에도 Base64전환 과정(604)은 무시된다. 15비트의 바이너리는 1비트의 제로를 패딩한 후 한글 또는 한자에 각각 매칭되며, 1비트 제로 패딩에 의해 메시지의 용량이 16/15배 증가한다. 매칭된 한글 또는 한자를 UCS2 코드의 바이너리 데이터로 표현하는 과정에서 바이너리 데이터의 배열은 변화하나, 메시지의 용량은 변화하지 않는다. 따라서, 이 경우 15비트의 바이너리 데이터를 전송하는데 16비트를 사용하므로 전송 효율은 15/16으로 종래 기술 및 한글/한자 코드를 이용한 경우보다 더 효율적인 것을 알 수 있다. 6 is a diagram for explaining an encoding method using a mixed code of a Hangul code and a Hanja code according to another embodiment of the present invention. Referring to FIG. 6, in step S600 and S620, a message is encrypted using the same technique as the conventional technique, and in step S640, an encrypted message is encoded using a mixed code of Hangul code and Hanja code. Mixed code can represent up to 15 bits of binary data. Referring to reference numeral 600, the encrypted binary data is divided into 15-bit units (602). In this case, the Base64 conversion process 604 is ignored. A 15-bit binary is padded with 1 bit of zeros and matched to each of Korean or Chinese characters, and the message capacity is increased by 16/15 times by 1 bit zero padding. In the process of expressing matched Hangul or Hanja as binary data of UCS2 code, the arrangement of binary data changes, but the capacity of message does not change. Therefore, in this case, since 16 bits are used for transmitting 15 bits of binary data, it is found that the transmission efficiency is 15/16, which is more efficient than the case of using the conventional technology and the Korean / Hanja code.

도 7은 본 발명의 또 다른 실시예에 따른 한글 코드와 한자 코드의 혼합 코드를 이용한 인코딩 방법을 추가 설명하기 위한 도면이다. 도 7을 참조하면, 암호화된 바이너리 데이터를 15 비트 단위로 분할하고(700), 15비트 바이너리에 1비트의 제로를 패딩하여 16비트의 바이너리 배열을 만든다(720 및 740). 이 후, 한자 코드 및 한글 코드의 혼합코드(760)에 순서대로 바이너리를 매칭시킨 후, 16비트의 바이너리 각각에 해당하는 한글 또는 한자로 표시한다. 매칭된 한글 또는 한자는 UCS2 코드로 표현되는 과정에서 바이너리 데이터의 배열이 변화되나 메시지 용량은 변화하지 않는다. 7 is a diagram for further illustrating an encoding method using a mixed code of a Hanja code and a Hanja code according to another embodiment of the present invention. Referring to FIG. 7, the encrypted binary data is divided into units of 15 bits (700), and a 15-bit binary is padded with 1-bit zeros to form a 16-bit binary array (720 and 740). Thereafter, the binary code is sequentially matched to the mixed code 760 of the Chinese character code and the Hangul code, and then the Chinese character or the Chinese character corresponding to each 16-bit binary is displayed. The matching Hangul or Hanja is represented by UCS2 code, but the message capacity is not changed although the arrangement of binary data is changed.

도 8은 본 발명의 일 실시예에 따른 한글 코드를 이용하여 인코딩된 메시지를 복호화하는 과정을 설명하기 위한 도면이다. 도 8을 참조하면, 단계 S800에서 수신 단말은 암호화된 SMS 메시지를 수신한다. 단계 S820에서는 수신한 SMS 메시지에 포함된 태그 등을 통해 복호화할 구간을 추출한다. 단계 S840에서는 한글 등으로 표현된 암호화 부분을 바이너리 데이터로 변환한다. 이 때 발신 단말에서의 인코딩 방법에 따라 추출하는 비트의 단위가 다를 수 있다. 단계 S860에서는 생성된 바이너리 데이터를 지정된 방식으로 복호화하여 원문을 얻을 수 있다. 이 때 암호화, 복호화 방법 및 키 전달 방법은 기존에 사용하는 방법 등을 이용할 수 있으며, 본 발명에서는 특정하지 않는다. 8 is a diagram for explaining a process of decoding a message encoded using a Hangul code according to an embodiment of the present invention. Referring to FIG. 8, in step S800, the receiving terminal receives the encrypted SMS message. In step S820, a section to be decoded is extracted through a tag included in the received SMS message. In step S840, the encrypted part represented by Korean characters is converted into binary data. In this case, the units of bits to be extracted may be different according to the encoding method in the calling terminal. In step S860, the generated binary data is decoded in a specified manner to obtain the original text. At this time, the encryption, decryption method, and key transmission method can use a conventional method or the like, and are not specified in the present invention.

도 9는 본 발명의 일 실시예에 따른 인코딩 방법에 따른 메시지 전송 효율성을 비교한 도면이다. 도 9를 참조하면, Base 64 코드를 이용한 종래 기술의 경우, 6비트를 전송하는데 16 비트를 사용하므로, 전송 효율은 6/16이고, 한글 코드를 이용하여 12 비트씩 분할하는 경우에는 전송 효율이 12/16, 13비트 씩 분할하는 경우에는 전송 효율이 13/16이다. 한자 코드를 이용한 경우는 전송 효율이 14/16, 한글 코드와 한자 코드의 혼합 코드를 이용하는 경우 전송 효율이 15/16으로 혼합 코드를 이용하는 경우에 가장 효율적으로 암호화된 메시지를 전송할 수 있다. 9 is a view for comparing message transmission efficiency according to an encoding method according to an embodiment of the present invention. Referring to FIG. 9, in the conventional technique using the Base 64 code, since 16 bits are used to transmit 6 bits, the transmission efficiency is 6/16. In the case of dividing 12 bits by using Hangul codes, 12/16, and 13 bits, the transmission efficiency is 13/16. In case of using the Hanja code, the transmission efficiency is 14/16, and when the mixed code of the Hangul code and the Hanja code is used, the transmission efficiency is 15/16. Therefore, when the mixed code is used, the most efficiently encrypted message can be transmitted.

도 10은 본 발명의 일 실시예에 따른 메시지 전송 서버의 구성도이다. 도 10을 참조하면, 메시지 전송 서버는 암호화부(1020), 인코딩부(1040), SMS 생성부(1060) 및 전송부(1080)를 포함할 수 있으나 이에 제한되지 않는다.10 is a configuration diagram of a message transmission server according to an embodiment of the present invention. 10, the message transmission server may include an encryption unit 1020, an encoding unit 1040, an SMS generation unit 1060, and a transmission unit 1080, but is not limited thereto.

암호화부(1020)는 메시지를 암호화 할 수 있다. 본 발명에서는 메시지의 암호화 방법이나 암호키의 형식은 특정 방법으로 제한하지 않는다. 인코딩부(1040)는 암호화된 메시지를 인코딩한다. 본 발명의 일 실시예에서는 기설정된 문자 코드를 이용하여 암호화된 메시지를 인코딩할 수 있다. 기설정된 문자 코드는 코드 변환시 2바이트 중 12비트 이상을 사용하는 문자 코드로서 한글 코드, 한자 코드, 한글 코드와 한자 코드의 혼합 코드를 포함할 수 있으나 이에 제한되지 않는다. The encryption unit 1020 can encrypt the message. In the present invention, the method of encrypting a message or the format of an encryption key is not limited to a specific method. The encoding unit 1040 encodes the encrypted message. In an embodiment of the present invention, an encrypted message can be encoded using a predetermined character code. The predetermined character code may include, but is not limited to, a Hangul code, a Hanja code, and a mixed code of Hangul code and Hanja code as character codes using more than 12 bits of 2 bytes at the time of code conversion.

본 발명의 일 실시예의 메시지는 바이너리 데이터로 표현된 이미지 또는 음성 또는 데이터 파일 등을 포함할 수 있으며, 이미지 또는 음성은 암호화된 문자 메시지의 경우와 마찬가지로 한글 코드 등을 포함하는 문자 코드를 이용하여 인코딩하여 전송될 수 있다. The message of the embodiment of the present invention may include an image, a voice or a data file represented by binary data, and the image or voice may be encoded using a character code including a Hangul code, Lt; / RTI &gt;

SMS 생성부(1060)는 메시지를 기설정된 길이로 분할하여 SMS를 생성할 수 있다. SMS 생성부(1060)는 분할된 메시지에 암호화 부분과 평문 부분을 구분하는 태그(Tag), 첫 번째 SMS와 두 번째 이 후의 SMS를 구분하는 플래그(Flag), SMS의 순서를 나타내는 인덱스(Index), 메시지의 전체 길이 및 분할된 메시지의 길이 등을 포함하여 SMS를 생성할 수 있으나 이에 제한되지 않는다. 이하 도 11을 참조하여 본 발명의 일 실시예에 따른 SMS 메시지 생성 방법을 설명하도록 한다.  The SMS generating unit 1060 may generate the SMS by dividing the message into predetermined lengths. The SMS generating unit 1060 includes a tag for distinguishing the encrypted portion and the plain text portion from the divided message, a flag for distinguishing the first SMS and the SMS after the second SMS, an index indicating the order of the SMS, , The total length of the message, the length of the divided message, and the like. Hereinafter, a method of generating an SMS message according to an embodiment of the present invention will be described with reference to FIG.

도 11은 본 발명의 일 실시예에 따라 생성된 SMS 메시지를 설명하기 위한 도면이다. 도 11을 참조하면, 도면 부호 1120은 첫번째 SMS 메시지의 예시를 나타내고, 도면 부호 1140은 두번째 및 세번째 SMS 메시지의 예시를 나타낸다. 도면 부호 1120을 참조하면, 첫 번째 SMS 메시지는 평문 설명 부분 및 암호화 부분 1에 태그, 플래그, 전체 길이 및 분할된 길이를 추가로 포함하여 생성될 수 있다. 도면 부호 1140을 참조하면, 두번째 이후의 SMS 메시지는 암호화 부분에 태그, 플래그, 인덱스 및 분할된 길이를 추가로 포함하여 생성될 수 있으나 이에 제한되지 않고 평문 설명 부분을 포함할 수도 있다. 태그, 플래그 등의 삽입 순서는 구현 편이성에 따라 변경될 수 있다. 11 is a view for explaining an SMS message generated according to an embodiment of the present invention. 11, reference numeral 1120 denotes an example of a first SMS message, and reference numeral 1140 denotes an example of a second and a third SMS message. Referring to reference numeral 1120, the first SMS message may be generated including a plaintext description part and an encryption part 1 including a tag, a flag, an entire length, and a divided length. Referring to reference numeral 1140, the second and subsequent SMS messages may be generated by further including a tag, a flag, an index, and a divided length in an encryption portion, but may include a plain text description portion. The order of insertion of tags, flags, etc. may be changed according to the implementation convenience.

다시 도 10으로 돌아와서, 전송부(1080)는 SMS 생성부(1060)에서 생성한 SMS 메시지를 수신 단말로 전송할 수 있다. Returning to FIG. 10, the transmitting unit 1080 may transmit the SMS message generated by the SMS generating unit 1060 to the receiving terminal.

도 1에 도시된 일 실시예에 따른 메시지 전송 방법은 컴퓨터에 의해 실행되는 프로그램 모듈과 같은 컴퓨터에 의해 실행 가능한 명령어를 포함하는 컴퓨터 프로그램 또는 기록 매체의 형태로도 구현될 수 있다. 컴퓨터 판독 가능 매체는 컴퓨터에 의해 액세스될 수 있는 임의의 가용 매체일 수 있고, 휘발성 및 비휘발성 매체, 분리형 및 비분리형 매체를 모두 포함한다. 또한, 컴퓨터 판독가능 매체는 컴퓨터 저장 매체 및 통신 매체를 모두 포함할 수 있다. 컴퓨터 저장 매체는 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈 또는 기타 데이터와 같은 정보의 저장을 위한 임의의 방법 또는 기술로 구현된 휘발성 및 비휘발성, 분리형 및 비분리형 매체를 모두 포함한다. 통신 매체는 전형적으로 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈, 또는 반송파와 같은 변조된 데이터 신호의 기타 데이터, 또는 기타 전송 메커니즘을 포함하며, 임의의 정보 전달 매체를 포함한다. The message transmission method according to the embodiment shown in FIG. 1 may be implemented in the form of a computer program or a recording medium including instructions executable by a computer such as a program module executed by a computer. Computer readable media can be any available media that can be accessed by a computer and includes both volatile and nonvolatile media, removable and non-removable media. In addition, the computer-readable medium can include both computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Communication media typically includes any information delivery media, including computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave, or other transport mechanism.

전술한 본 발명의 설명은 예시를 위한 것이며, 본 발명이 속하는 기술분야의 통상의 지식을 가진 자는 본 발명의 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 쉽게 변형이 가능하다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다. 예를 들어, 단일형으로 설명되어 있는 각 구성 요소는 분산되어 실시될 수도 있으며, 마찬가지로 분산된 것으로 설명되어 있는 구성 요소들도 결합된 형태로 실시될 수 있다. It will be understood by those skilled in the art that the foregoing description of the present invention is for illustrative purposes only and that those of ordinary skill in the art can readily understand that various changes and modifications may be made without departing from the spirit or essential characteristics of the present invention. will be. It is therefore to be understood that the above-described embodiments are illustrative in all aspects and not restrictive. For example, each component described as a single entity may be distributed and implemented, and components described as being distributed may also be implemented in a combined form.

본 발명의 범위는 상기 상세한 설명보다는 후술하는 특허청구범위에 의하여 나타내어지며, 특허청구범위의 의미 및 범위 그리고 그 균등 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다. The scope of the present invention is defined by the appended claims rather than the detailed description and all changes or modifications derived from the meaning and scope of the claims and their equivalents are to be construed as being included within the scope of the present invention do.

1020: 암호화부
1040: 인코딩부
1060: SMS 생성부
1080: 전송부
1020:
1040:
1060: SMS generating unit
1080:

Claims (19)

메시지를 전송하는 방법에 있어서,
상기 메시지를 기설정된 문자 코드를 이용해서 인코딩하는 단계; 및
상기 메시지를 수신 단말로 전송하는 단계
를 포함하되,
상기 문자 코드는 문자를 N 비트의 바이너리 데이터로 표현한 것이고, 상기 N 비트는 12 비트, 13 비트, 14 비트 또는 15 비트 중 어느 하나이고,
상기 인코딩하는 단계는,
상기 메시지를 바이너리 데이터로 표현하는 단계;
상기 바이너리 데이터를 N 비트 바이너리 데이터로 분할하는 단계;
상기 분할된 N 비트 바이너리 데이터를 상기 문자 코드의 대응하는 문자에 매칭하는 단계; 및
상기 매칭된 문자를 16비트 바이너리 데이터로 변환하는 단계
를 포함하는 것인, 메시지 전송 방법.
In a method for transmitting a message,
Encoding the message using a predetermined character code; And
Transmitting the message to a receiving terminal
, &Lt; / RTI &
Wherein the character code is a character represented by N bits of binary data, and the N bits are any one of 12 bits, 13 bits, 14 bits, or 15 bits,
Wherein the encoding step comprises:
Expressing the message as binary data;
Dividing the binary data into N-bit binary data;
Matching the divided N-bit binary data to a corresponding character of the character code; And
Converting the matched character into 16-bit binary data
The method comprising the steps of:
제 1 항에 있어서,
상기 메시지를 암호화하는 단계
를 더 포함하는, 메시지 전송 방법.
The method according to claim 1,
Encrypting the message
Further comprising the steps of:
제 1 항에 있어서,
상기 문자 코드는 한글 코드인 것인, 메시지 전송 방법.
The method according to claim 1,
Wherein the character code is a Hangul code.
제 1 항에 있어서,
상기 문자 코드는 한자 코드인 것인, 메시지 전송 방법.
The method according to claim 1,
Wherein the character code is a Hanja code.
제 1 항에 있어서,
상기 문자 코드는 한글 코드와 한자 코드의 혼합 코드인 것인, 메시지 전송 방법.
The method according to claim 1,
Wherein the character code is a mixed code of Hangul code and Hanja code.
제 1 항에 있어서,
상기 메시지를 기설정된 길이로 분할하여 SMS(Short Message Service) 메시지를 생성하는 단계
를 더 포함하고,
상기 생성하는 단계는 분할된 메시지에 암호화 부분과 평문 부분을 구분하는 태그(Tag), 첫 번째 SMS와 두 번째 이 후 SMS를 구분하는 플래그(Flag), SMS의 순서를 나타내는 인덱스(Index), 메시지의 전체 길이 및 분할된 메시지의 길이 중 하나 이상을 포함하여 SMS 메시지를 생성하는 것인, 메시지 전송 방법.
The method according to claim 1,
Dividing the message into predetermined lengths to generate a Short Message Service (SMS) message
Further comprising:
The generating step includes a tag for distinguishing the encrypted part and the plain text part from the divided message, a flag for distinguishing the first SMS from the second SMS, an Index indicating the order of the SMS, The total length of the message and the length of the divided message.
제 6 항에 있어서,
상기 생성하는 단계는, 상기 태그, 상기 플래그, 상기 전체 길이 및 상기길이를 포함하여 첫 번째 SMS 메시지를 생성하고, 상기 태그, 상기 플래그, 상기 인덱스 및 상기 길이를 포함하여 두 번째 이후의 SMS 메시지를 생성하는 것인, 메시지 전송 방법.
The method according to claim 6,
Wherein the step of generating comprises generating a first SMS message including the tag, the flag, the total length and the length, and generating a second and subsequent SMS messages including the tag, the flag, the index and the length, The method comprising:
제 1 항에 있어서,
상기 메시지는 암호화 구간과 비암호화 구간을 포함하는 것인, 메시지 전송 방법.
The method according to claim 1,
Wherein the message comprises an encryption period and a non-encryption period.
제 1 항에 있어서,
상기 메시지는 이미지 또는 바이너리 데이터를 포함하는 것인, 메시지 전송 방법.
The method according to claim 1,
Wherein the message comprises an image or binary data.
단말과 결합되어 메시지를 전송하기 위하여 매체에 저장된 컴퓨터 프로그램으로서,
상기 메시지를 기설정된 문자 코드를 이용해서 인코딩하고,
상기 메시지를 수신 단말로 전송하도록 하는 명령어들의 시퀀스를 포함하되,
상기 문자 코드는 문자를 N 비트의 바이너리 데이터로 표현한 것이고, 상기 N 비트는 12 비트, 13 비트, 14 비트 및 15 비트 중 어느 하나이고,
상기 컴퓨터 프로그램은,
상기 메시지를 바이너리 데이터로 표현하고,
상기 바이너리 데이터를 N 비트 바이너리 데이터로 분할하고,
상기 분할된 N 비트 바이너리 데이터를 상기 문자 코드의 대응하는 문자에 매칭하고,
상기 매칭된 문자를 16비트 바이너리 데이터로 변환하도록 하는 명령어들의 시퀀스를 더 포함하는 것인, 매체에 저장된 컴퓨터 프로그램.
A computer program stored on a medium for transmitting a message in combination with a terminal,
Encodes the message using a predetermined character code,
And sending the message to a receiving terminal,
Wherein the character code is a character represented by N bits of binary data, and the N bits are any one of 12 bits, 13 bits, 14 bits, and 15 bits,
The computer program comprising:
The message is represented by binary data,
Divides the binary data into N-bit binary data,
Bit binary data into a corresponding character of the character code,
Further comprising a sequence of instructions for causing the matched character to be converted to 16-bit binary data.
제 10 항에 있어서,
상기 메시지를 암호화하도록 하는 명령어들의 시퀀스를 더 포함하는 것인, 매체에 저장된 컴퓨터 프로그램.
11. The method of claim 10,
The computer program product further comprising a sequence of instructions for causing the computer to encrypt the message.
제 10 항에 있어서,
상기 문자 코드는 한글 코드, 한자 코드 또는 한글 코드와 한자 코드의 혼합 코드인 것인, 매체에 저장된 컴퓨터 프로그램.
11. The method of claim 10,
Wherein the character code is a Hangul code, a Hanja code, or a mixed code of Hanja code and Hanja code.
제 10 항에 있어서,
상기 메시지를 기설정된 길이로 분할하여 SMS 메시지를 생성하고,
상기 SMS 메시지는 암호화 부분과 평문 부분을 구분하는 태그(Tag), 첫 번째SMS와 두 번째 이 후 SMS를 구분하는 플래그(Flag), SMS의 순서를 나타내는 인덱스(Index), 메시지의 전체 길이 및 분할된 메시지의 길이 중 하나 이상을 포함하는 것인, 매체에 저장된 컴퓨터 프로그램.
11. The method of claim 10,
Generates an SMS message by dividing the message into predetermined lengths,
The SMS message includes a tag for distinguishing the encrypted part and the plain text part, a flag for distinguishing the first SMS and the second SMS, an index indicating the order of the SMS, Lt; RTI ID = 0.0 &gt; and / or &lt; / RTI &gt;
제 10 항에 있어서,
상기 메시지는 암호화 구간과 비암호화 구간을 포함하는 것인, 매체에 저장된 컴퓨터 프로그램.
11. The method of claim 10,
Wherein the message comprises an encryption period and a non-encryption period.
제 10 항에 있어서,
상기 메시지는 이미지 또는 바이너리 데이터를 포함하는 것인, 매체에 저장된 컴퓨터 프로그램
11. The method of claim 10,
Wherein the message comprises an image or binary data,
메시지를 전송하는 서버에 있어서,
상기 메시지를 기설정된 문자 코드를 이용해서 인코딩하는 인코딩부; 및
상기 메시지를 수신 단말로 전송하는 전송부
를 포함하되,
상기 문자 코드는 문자를 N 비트의 바이너리 데이터로 표현한 것이고, 상기 N 비트는 12 비트, 13 비트, 14 비트 및 15 비트 중 어느 하나이고,
상기 인코딩부는,
상기 메시지를 바이너리 데이터로 표현하고,
상기 바이너리 데이터를 N 비트 바이너리 데이터로 분할하고,
상기 분할된 N 비트 바이너리 데이터를 상기 문자 코드의 대응하는 문자에 매칭하고,
상기 매칭된 문자를 16비트 바이너리 데이터로 변환하는 것인, 메시지 전송 서버.
A server for transmitting a message,
An encoding unit encoding the message using a predetermined character code; And
A transmitting unit for transmitting the message to a receiving terminal
, &Lt; / RTI &
Wherein the character code is a character represented by N bits of binary data, and the N bits are any one of 12 bits, 13 bits, 14 bits, and 15 bits,
The encoding unit may include:
The message is represented by binary data,
Divides the binary data into N-bit binary data,
Bit binary data into a corresponding character of the character code,
And converts the matched character into 16-bit binary data.
제 16 항에 있어서,
상기 메시지를 암호화 하는 암호화부
를 더 포함하는 것인, 메시지 전송 서버.
17. The method of claim 16,
An encryption unit
Further comprising: &lt; / RTI &gt;
제 16 항에 있어서,
상기 문자 코드는 한글 코드, 한자 코드 또는 한글 코드와 한자 코드의 혼합 코드인 것인, 메시지 전송 서버.
17. The method of claim 16,
Wherein the character code is a Hangul code, a Hanja code, or a mixed code of Hanja code and Hanja code.
제 16 항에 있어서,
상기 메시지를 기 설정된 길이로 분할하여 SMS 메시지를 생성하는 SMS 생성부
를 더 포함하고,
상기 SMS 생성부는, 분할된 메시지에 암호화 부분과 평문 부분을 구분하는 태그(Tag), 첫 번째 SMS와 두 번째 이 후 SMS를 구분하는 플래그(Flag), SMS의 순서를 나타내는 인덱스(Index), 메시지의 전체 길이 및 분할된 메시지의 길이 중 하나 이상을 포함하여 SMS 메시지를 생성하는 것인, 메시지 전송 서버.
17. The method of claim 16,
An SMS generating unit for generating an SMS message by dividing the message into predetermined lengths,
Further comprising:
The SMS generator includes a tag for distinguishing the encrypted part and the plain text part from the divided message, a flag for distinguishing the first SMS from the SMS after the second SMS, an index indicating the order of the SMS, The total length of the message, and the length of the partitioned message.
KR1020160070104A 2016-06-07 2016-06-07 Method, server and computer program for transmitting binary data KR101739039B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160070104A KR101739039B1 (en) 2016-06-07 2016-06-07 Method, server and computer program for transmitting binary data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160070104A KR101739039B1 (en) 2016-06-07 2016-06-07 Method, server and computer program for transmitting binary data

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020150000163A Division KR101632651B1 (en) 2015-01-02 2015-01-02 Method, server and computer program for transmitting binary data

Publications (2)

Publication Number Publication Date
KR20160083823A true KR20160083823A (en) 2016-07-12
KR101739039B1 KR101739039B1 (en) 2017-05-23

Family

ID=56505290

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160070104A KR101739039B1 (en) 2016-06-07 2016-06-07 Method, server and computer program for transmitting binary data

Country Status (1)

Country Link
KR (1) KR101739039B1 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101632651B1 (en) * 2015-01-02 2016-06-22 주식회사 케이티 Method, server and computer program for transmitting binary data

Also Published As

Publication number Publication date
KR101739039B1 (en) 2017-05-23

Similar Documents

Publication Publication Date Title
US9692591B2 (en) Cryptographic method and apparatus
CN110224999B (en) Information interaction method and device and storage medium
US8254570B2 (en) Method and system for encryption of data
CN111465006B (en) Beidou short message encryption and decryption method based on ancestor algorithm and communication system
EA003679B1 (en) Method for encrypting information and device for realization of the method
CN102073977A (en) Methods and equipment for generating and authenticating digital signatures and digital signature system
Wen et al. Research on base64 encoding algorithm and PHP implementation
CN111769836A (en) Encryption transmission algorithm based on BASE64
CN111884802B (en) Media stream encryption transmission method, system, terminal and electronic equipment
CN101309483A (en) Short message encoding and decoding method and terminal
CN116707771A (en) Communication method based on data encryption
CN104486756A (en) Encryption and decryption method and system for secret letter short message
US8077868B2 (en) Mechanism for transport-safe codings for cryptographic use
CN112637230B (en) Instant messaging method and system
CN114257562A (en) Instant messaging method, instant messaging device, electronic equipment and computer readable storage medium
CN109818743B (en) Method and system for text transmission of elliptic curve public key
KR101632651B1 (en) Method, server and computer program for transmitting binary data
KR20150010571A (en) System and method for deniable encryption
KR101739039B1 (en) Method, server and computer program for transmitting binary data
CN109905241B (en) Short Chinese character encoding and decoding method of elliptic curve public key
CN114172737A (en) Encryption communication method based on block chain network
Al-Smadi et al. Files cryptography based on one-time pad algorithm
KR20080025969A (en) Apparatus and method for transmission and reception of binary data inshort message system
US20130251147A1 (en) Lexicon Cryptogram Generation System For Electronic Messaging
CN117440372B (en) Zero trust authentication method and device for wireless network

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant