KR20210111978A - Secret messaging system using encryption - Google Patents

Secret messaging system using encryption Download PDF

Info

Publication number
KR20210111978A
KR20210111978A KR1020200026945A KR20200026945A KR20210111978A KR 20210111978 A KR20210111978 A KR 20210111978A KR 1020200026945 A KR1020200026945 A KR 1020200026945A KR 20200026945 A KR20200026945 A KR 20200026945A KR 20210111978 A KR20210111978 A KR 20210111978A
Authority
KR
South Korea
Prior art keywords
chat room
relay server
encryption
message
encryption key
Prior art date
Application number
KR1020200026945A
Other languages
Korean (ko)
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 KR1020200026945A priority Critical patent/KR20210111978A/en
Publication of KR20210111978A publication Critical patent/KR20210111978A/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/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0827Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) involving distinctive intermediate devices or communication paths
    • 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/18Commands or executable codes
    • 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/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/083Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) involving central third party, e.g. key distribution center [KDC] or trusted third party [TTP]
    • 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/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0891Revocation or update of secret information, e.g. encryption key update or rekeying

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a secret messaging system using encryption, wherein in a messaging exchange between terminals, by processing encryption in each terminal, interception between communications is impossible, and even when stored in a terminal, a message is encrypted and stored with an encryption key which does not exist in the terminal, so that even if an event such as loss occurs, a content of the message should not be disclosed.

Description

암호화를 이용한 비밀 메시징 시스템 {SECRET MESSAGING SYSTEM USING ENCRYPTION}Secret messaging system using encryption {SECRET MESSAGING SYSTEM USING ENCRYPTION}

본 발명은 단말기 간의 메시징 교환에 있어서, 각 단말기에서 암호화를 처리함으로써, 통신간 감청이 불가능하며, 단말기에 저장할 때도 단말기에 존재하지 않는 암호키로 암호화해서 저장함으로써, 분실 등의 사건이 발생하더라도, 메시지 내용이 공개되지 않도록 하는 암호화를 이용한 비밀 메시징 시스템에 관한 것이다.According to the present invention, in the messaging exchange between terminals, by processing encryption in each terminal, interception between communications is impossible, and even when an event such as loss occurs, messages are encrypted and stored with an encryption key that does not exist in the terminal even when stored in the terminal. It relates to a secret messaging system using encryption that prevents the content from being disclosed.

기존 단말에서 암호화를 통한 비밀 메시징 시스템이 존재하나, 일대일 통신에 한정되고 있으며, 통신 구간에서 암호화 되었더라도, 단말에서는 복호화 된 상태로 단말에 저장됨으로써 분실 등의 사건이 발생하면, 정보가 노출될 위험이 있다.Although there is a secret messaging system through encryption in the existing terminal, it is limited to one-to-one communication, and even if encrypted in the communication section, the terminal is stored in the terminal in a decrypted state. have.

사용자 간에는 다른 기록을 남기지 아니하고 비밀 메세지를 주고 받을 일이 점점 많아지고 있으며, 또한 중계 서버에서 기록이 남지 않은 채로 메세지를 주고 받고 싶은 요구가 늘어나고 있다.Secret messages are increasingly exchanged between users without leaving any other records, and there is also an increasing demand for messages to be exchanged without leaving any records in the relay server.

본 발명은 이러한 암호화 메세지 및 비밀이 유지되며 중계 서버에 기록을 남기지 않는 메시징 시스템의 제공에 관한 것이다.The present invention relates to the provision of such encrypted messages and a messaging system that is confidential and does not leave a log on a relay server.

본 발명은 통신구간 및 단말 저장 등 전 구간에 걸쳐서 암호화 처리 함으로써, 갈수록 증대되는 개인정보 보호 욕구를 충족하게 함을 목적으로 한다.An object of the present invention is to satisfy the increasing need for personal information protection by performing encryption processing over the entire section such as communication section and terminal storage.

본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템은, 하나 이상의 참여자 단말기; 및 중계 서버를 포함하고, 상기 단말기에서는 개인별 개인키 및 공개키의 생성이 가능하며, 상기 개인키 및 공개키는 대화방의 개설 또는 참여시 상기 중계 서버에 전달되고, 상기 중계 서버는 대화방의 개설시 대화방 암호키를 생성하며, 상기 생성된 대화방 암호키는 대화방의 참여자에게 개인별 공개키를 이용해 암호화되어 전달되고, 상기 중계 서버로부터 암호화된 대화방 암호키를 받은 단말기는 상기 대화방 암호키를 개인키로 복호화한다.A secret messaging system using encryption according to an embodiment of the present invention includes: one or more participant terminals; and a relay server, wherein the terminal is capable of generating individual private and public keys, and the private and public keys are transmitted to the relay server when opening or participating in a chat room, and the relay server is configured to open a chat room. A chat room encryption key is generated, the generated chat room encryption key is encrypted and delivered to the participants of the chat room using an individual public key, and the terminal receiving the encrypted chat room encryption key from the relay server decrypts the chat room encryption key with a private key .

이미 생성된 대화방을 다시 개설하는 경우, 상기 중계 서버에 대화방 암호키를 요청하여 대화방 암호키를 받아서 복호화하여 사용한다.When re-opening an already created chat room, the relay server requests the chat room encryption key, receives the chat room encryption key, and decrypts it for use.

상기 중계 서버에 대화방 암호키를 요청하였을 때 상기 중계 서버로부터 응답이 없는 경우 상기 대화방은 삭제된 경우이므로 삭제 처리된다.If there is no response from the relay server when a chat room encryption key is requested from the relay server, the chat room is deleted and thus deleted.

대화방 참여자가 메세지를 보내는 경우, 상기 대화방 암호키를 이용해 암호화하여 상기 중계 서버로 전송되고, 상기 중계 서버는 해당 메세지를 참여자에게 전송하며, 상기 메세지를 수신한 단말기는 상기 대화방 암호키를 이용해 복호화하여 상기 단말기의 화면에 표시한다.When a chat room participant sends a message, it is encrypted using the chat room encryption key and transmitted to the relay server, the relay server transmits the message to the participant, and the terminal receiving the message decrypts the message using the chat room encryption key. displayed on the screen of the terminal.

메세지의 송신 및 수신시 상기 중계 서버에서는 메세지 발신에 관한 정보 및 메세지 수신에 관한 정보를 기록하고, 메세지 송수신이 완료된 경우 상기 메세지 발신에 관한 정보 및 메세지 수신에 관한 정보를 삭제한다.When sending and receiving a message, the relay server records message transmission information and message reception information, and when message transmission and reception is completed, the message transmission information and message reception information are deleted.

대화방 종료 요청 또는 대화방 참여자가 대화방을 나가는 경우, 상기 중계 서버에 저장되어 있는 대화방 암호키를 삭제하고, 대화방 참여자에게 대화방 종료 메세지를 전달한다.When a chat room termination request or a chat room participant leaves the chat room, the chat room encryption key stored in the relay server is deleted, and a chat room termination message is delivered to the chat room participant.

대화방 참여자가 모두 온라인에 있는 경우, 중계 서버에서 별도의 기록이 없이 메세지가 암호화 및 복호화되면서 대화가 진행된다.If all chat room participants are online, the conversation proceeds while the message is encrypted and decrypted without a separate record in the relay server.

본 발명에 따르면, 메시지통신에서 최근 중요성이 증대하고 있는 개인정보보호를 강화하여 메시징 내용의 보안을 최대화 되어 개인정보가 강화될 것으로 기대된다.According to the present invention, it is expected that personal information will be strengthened by strengthening the protection of personal information, which has recently been increasing in importance in message communication, to maximize the security of messaging contents.

도 1은 본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템의 구성도를 도시한다.
도 2는 본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템을 이용해 대화방을 개설하는 내용에 대한 순서도를 도시한다.
도 3은 본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템을 이용해 대화방을 종료하는 내용에 대한 순서도를 도시한다.
도 4는 본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템을 이용해 메세지를 전송 및 수신하는 내용에 대한 순서도를 도시한다.
다양한 실시예들이 이제 도면을 참조하여 설명되며, 전체 도면에서 걸쳐 유사한 도면번호는 유사한 엘리먼트를 나타내기 위해서 사용된다. 설명을 위해 본 명세서에서, 다양한 설명들이 본 발명의 이해를 제공하기 위해서 제시된다. 그러나 이러한 실시예들은 이러한 특정 설명 없이도 실행될 수 있음이 명백하다. 다른 예들에서, 공지된 구조 및 장치들은 실시예들의 설명을 용이하게 하기 위해서 블록 다이아그램 형태로 제시된다.
1 is a block diagram of a secret messaging system using encryption according to an embodiment of the present invention.
FIG. 2 is a flowchart illustrating the contents of opening a chat room using a secret messaging system using encryption according to an embodiment of the present invention.
3 is a flowchart illustrating the contents of terminating a chat room using a secret messaging system using encryption according to an embodiment of the present invention.
4 is a flowchart illustrating the contents of transmitting and receiving a message using a secret messaging system using encryption according to an embodiment of the present invention.
Various embodiments are now described with reference to the drawings, wherein like reference numerals are used to refer to like elements throughout. In this specification for purposes of explanation, various descriptions are presented to provide an understanding of the present invention. However, it is apparent that these embodiments may be practiced without these specific descriptions. In other instances, well-known structures and devices are presented in block diagram form in order to facilitate describing the embodiments.

이하, 첨부한 도면을 참조하여 본 발명의 실시예에 대해 상세히 설명한다. 본 발명은 다양한 변경을 가할 수 있고 여러 가지 형태를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 본문에 상세하게 설명하고자 한다. 그러나 이는 본 발명을 특정한 개시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다. Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. Since the present invention can have various changes and can have various forms, specific embodiments are illustrated in the drawings and described in detail in the text. However, this is not intended to limit the present invention to the specific disclosed form, it should be understood to include all modifications, equivalents and substitutes included in the spirit and scope of the present invention. In describing each figure, like reference numerals have been used for like elements.

본 출원에서 사용한 용어는 단지 특정한 실시 예를 설명하기 위해 사용된 것으로서 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서 상에 기재된 특징, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present application are used only to describe specific embodiments and are not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as “comprise” or “have” are intended to designate that a feature, step, operation, component, part, or combination thereof described in the specification is present, and includes one or more other features or steps. , it should be understood that it does not preclude the possibility of the existence or addition of , operation, components, parts, or combinations thereof.

도 1은 본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템의 구성도를 도시한다. 도 1에서 보는 것처럼, 본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템은 하나 이상의 참여자 단말기 및 중계 서버를 포함한다.1 is a block diagram of a secret messaging system using encryption according to an embodiment of the present invention. As shown in FIG. 1 , the secret messaging system using encryption according to an embodiment of the present invention includes one or more participant terminals and a relay server.

본 발명의 비밀 메시징 시스템을 이용하기 위해서는 앱 스토어 등을 통해 본 발명의 비밀 메시징 시스템 어플리케이션을 다운로드 하여 단말기에 설치 후 이용할 수 있다.In order to use the secret messaging system of the present invention, it is possible to download the secret messaging system application of the present invention through an app store, etc., install it in a terminal, and then use it.

대화방 참여자의 단말기는 키 생성부; 암호화복호화부; 저장부; 및 송수신부를 포함하고, 이 외에 다른 필요한 구성을 추가로 포함할 수 있다.The terminal of the chat room participant includes a key generator; encryption/decryption unit; storage; and a transceiver, and may further include other necessary components.

중계 서버는 아이디-주소 관리부; 대화방 관리부; 데이터베이스부; 송수신부를 포함하고, 이 외에 다른 필요한 구성을 추가로 포함할 수 있다.The relay server includes an ID-address management unit; chat room management department; database unit; It includes a transceiver and may further include other necessary components in addition to this.

본 명세서에서 키(key)는 숫자/문자/기호 등의 열을 의미하는 것으로서, 개인키라고 하면 개인의 신분, 아이디, 주소와 같은 개인 정보를 저장하고 있는 숫자/문자/기호 등의 열을 의미하는 것이며, 암호키라고 하면 암호학적 변환, 즉 암호화, 복호화, 암호학적 검사, 함수 계산, 서명 계산, 서명 검증 등의 작동을 조절하는 숫자/문자/기호 등의 열을 의미한다.In this specification, a key means a column of numbers/characters/symbols, etc., and the private key means a column of numbers/characters/symbols storing personal information such as an individual's identity, ID, and address. The encryption key means a column of numbers/characters/symbols that control the operations of cryptographic transformation, that is, encryption, decryption, cryptographic check, function calculation, signature calculation, and signature verification.

회원 아이디는 모바일(단말기) 전화번호를 회원 아이디로 사용할 수 있으며, 회원 아이디는 1개의 회원 주소를 가질 수 있다. 회원 아이디는 회원 전화번호를 기초로 제공된다. 회원 아이디는 회원 전화번호를 기초로 회원 아이디와 회원 주소를 맵핑하여 중계 서버의 아이디-주소 관리부에서 관리될 수 있다. 회원 아이디 및 회원 주소이 변경이 있으면 기존의 대화 내용이나 정보 등의 히스토리 등은 모두 삭제될 수 있다.The member ID may use a mobile (terminal) phone number as the member ID, and the member ID may have one member address. Member ID is provided based on member phone number. The member ID may be managed by the ID-address management unit of the relay server by mapping the member ID and the member address based on the member phone number. If the member ID and member address are changed, the history of existing conversations or information may all be deleted.

위에서 설명한 회원 아이디는 ECDSA 방식(256 비트)으로 개인키 및 공개키가 생성될 수 있으며, 이는 단말기의 키 생성부에서 생성될 수 있다. 생성된 공개키를 해쉬 알고리즘으로 암호화하여 32바이트 고정값을 생성할 수 있고, 생성된 해쉬를 회원별 주소로 이용할 수 있다. 이러한 키 생성 방식 등은 일 예시에 불과하며, 다른 방식으로 생성될 수 있다. 회원 아이디별로 1개를 가지며 주소는 재생성도 가능하고, 주소의 재생성이 있는 경우 기존의 대화 내용 등은 모두 삭제될 수 있다.For the member ID described above, a private key and a public key may be generated by the ECDSA method (256 bits), which may be generated by the key generator of the terminal. A 32-byte fixed value can be generated by encrypting the generated public key with a hash algorithm, and the generated hash can be used as an address for each member. Such a key generation method is merely an example, and may be generated in another method. There is one per member ID, and addresses can be regenerated.

회원 아이디-주소 관리부를 통해서 이를 검색하여 친구의 전화번호가 등록되어 있는 경우 자동으로 등록 또는 추천이 표시될 수 있다. 이 경우 친구를 등록시 아이디-주소 쌍으로 등록될 수 있다. 단말기에서 전화번호를 입력할 경우, 해당 전화번호가 중계 서버의 아이디-주소 관리부에 등록이 되어 있으면 단말기의 주수록에 아이디-주소가 자동으로 등록될 수 있다.When a friend's phone number is registered by searching for it through the member ID-address management unit, registration or recommendation may be automatically displayed. In this case, when registering a friend, it may be registered as an ID-address pair. When inputting a phone number in the terminal, if the corresponding phone number is registered in the ID-address management unit of the relay server, the ID-address may be automatically registered in the main recording of the terminal.

한편, 단말기의 주소록에 등록된 아이디-주소 맵핑값이 중계 서버의 아이디-주소 관리부에 없는 경우, 아이디가 존재한다면 단말기의 주소록의 주소 매핑값을 변경하고, 아이디가 존재하지 않는다면 주소록에서 아이디를 자동응로 삭제할 수 있다. 이 두 경우 모두 단말기에서 기존에 저장된 대화 내용 등이 있으면 해당 내용은 자동으로 삭제될 수 있다.On the other hand, if the ID-address mapping value registered in the address book of the terminal does not exist in the ID-address management unit of the relay server, if the ID exists, the address mapping value of the terminal address book is changed, and if the ID does not exist, the ID is automatically retrieved from the address book Yes, you can delete it. In both of these cases, if there are conversation contents previously stored in the terminal, the corresponding contents may be automatically deleted.

이하에서는 위에서 설명한 암호화를 이용한 비밀 메시징 시스템을 이용하여 대화방을 개설하고, 참여하고, 종료하고, 메세지를 송수신하는 내용에 대해서 차례대로 설명하도록 하겠다.Hereinafter, the contents of opening, participating in, terminating, and sending and receiving a message in a chat room using the encryption-based secret messaging system described above will be described in turn.

도 2는 본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템을 이용해 대화방을 개설하는 내용에 대한 순서도를 도시한다.2 is a flowchart illustrating the contents of opening a chat room using the secret messaging system using encryption according to an embodiment of the present invention.

도 2에서 도시된 것처럼, 단말기에서 개인별로 개인키 및 공개키를 생성하는 단계(S 210); 중계 서버로 대화방 개설 요청과 함께 상기 생성된 개인키 및 공개키가 중계 서버로 전달되는 단계(S 220); 중계 서버가 대화방 개설 요청을 받고 대화방 암호키를 생성하는 단계(S 230); 상기 중계 서버에서 생성된 대화방 암호키가 대화방 참여자의 개인별 공개키를 이용하여 암호화되어 전달되는 단계(S 240); 및 상기 중계 서버로부터 암호화된 대화방 암호키를 받은 단말기는 대화방 암호키를 개인키로 복호화하는 단계(S 250)를 포함한다.As shown in Fig. 2, generating a private key and a public key for each individual in the terminal (S210); transmitting the generated private key and public key to the relay server together with a request to open a chat room to the relay server (S220); step of the relay server receiving a chat room establishment request and generating a chat room encryption key (S230); The chat room encryption key generated by the relay server is encrypted and delivered using the individual public key of the chat room participant (S240); and the terminal receiving the encrypted chat room encryption key from the relay server decrypts the chat room encryption key with the private key (S250).

S 210 단계에서는 대화방 개설자 또는 참여자의 단말기에서 개인별로 개인키 및 공개키가 생성되고, 이렇게 생성된 개인키 및 공개키가 S 220 단계에서 중계 서버로 전달된다. 중계 서버의 대화방 관리부는 S 230 단계에서 대화방 개설 요청에 따른 대화방 암호키를 생성하고, S 240 단계에서 대화방 관리부는 이러한 암호키를 대화방 참여자의 개인별 공개키를 이용해 암호화하여 참여자 또는 개설자에게 전달한다. 마지막으로 대화방 암호키를 전달받은 단말기는 대화방 암호키를 개인키로 복호화하게 되며, 이를 통해 대화방이 최종적으로 개설되거나 대화방에 참여하게 되어 단말기 화면에 대화방이 개설되게 되는 것이다. 중계 서버의 데이터베이스부에는 대화방 암호키 및 참여자 목록이 저장된다.In step S210, a private key and a public key are generated for each individual in the terminal of the chat room founder or participant, and the generated private key and public key are transmitted to the relay server in step S220. The chat room management unit of the relay server generates a chat room encryption key according to the chat room establishment request in step S230, and in step S240 the chat room management unit encrypts the encryption key using the individual public key of the chat room participant and delivers it to the participant or the founder. Finally, the terminal receiving the chat room encryption key decrypts the chat room encryption key with the private key. A chat room encryption key and a list of participants are stored in the database unit of the relay server.

위에서 설명한 것처럼, 대화방 참여 요청을 수신한 단말기는 해당 대화방 암호키를 개인키로 복호화하여 대화방에 참여하게 된다.As described above, the terminal receiving the chat room participation request decrypts the chat room encryption key with the private key to participate in the chat room.

한편, 대화방 개설시 참여자를 지정할 수 있으며, 참여자 목록을 이용해 기존에 오픈된 대화방이 있는 경우 기존에 오픈된 대화방에서 계속하여 진행될 수 있다.On the other hand, participants can be designated when opening a chat room, and if there is an previously opened chat room using the participant list, the previously opened chat room can be continued.

이미 생성된 대화방을 다시 개설하는 경우에는 중계 서버에 대화방 암호키를 요청하여 대화방 암호키를 새로이 받아서 복호화하여 사용할 수 있다. 이 경우 중계 서버에 대화방 암호키를 요청하였을 때 중계 서버로부터 응답이 없는 경우, 해당 대화방은 삭제된 경우이므로 해당 대화방의 대화 내용 등은 모두 삭제 처리된다.When opening a chat room that has already been created again, you can request a chat room encryption key from the relay server, receive a new chat room encryption key, and decrypt it for use. In this case, if there is no response from the relay server when a request for the chat room encryption key is requested from the relay server, since the chat room has been deleted, all conversation contents of the chat room are deleted.

도 3은 본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템을 이용해 대화방을 종료하는 내용에 대한 순서도를 도시한다. 대화방의 종료는 대화방의 종료 요청 또는 대화방을 참여자가 나감으로써 이루어질 수 있다.3 is a flowchart illustrating the contents of terminating a chat room using the encryption-based secret messaging system according to an embodiment of the present invention. Termination of the chat room may be accomplished by requesting the end of the chat room or by a participant leaving the chat room.

도 3에서 도시된 것처럼, 대화방의 종료 요청 또는 대화방의 참여자가 대화방을 나가는 단계(S 310); 중계 서버에 저장되어 있는 대화방 암호키를 삭제하는 단계(S 320); 중계 서버로부터 대화방 참여자 단말기로 대화방 종료 메세지가 전달되는 단계(S 330); 및 대화방 종료 메세지를 전달받은 단말기에서 저장된 대화방과 관련된 모든 자료 및 대화방이 삭제되는 단계(S 340)를 포함한다.As shown in FIG. 3 , the step of requesting to terminate the chat room or the participant of the chat room leaving the chat room ( S310 ); deleting the chat room encryption key stored in the relay server (S320); transmitting a chat room termination message from the relay server to the chat room participant terminal (S330); and deleting all data and chat rooms related to the chat room stored in the terminal receiving the chat room termination message (S340).

대화방을 이용하다가 어느 참여자의 대화방 종료 요청 또는 대화방 참여자가 대화방을 나감에 의해 종료가 시작되고(S 310), 대화방 종료 요청 신호가 발생되면 중계 서버는 저장된 대화방 암호키(중계서버의 데이터베이스부에 저장되어 있음)를 삭제하며(S 320), 이후 대화방 참여자 단말기로 대호방 종료 메세지가 전달된다(S 330). S 340 단계에서 대화방 종료 메세지를 전달받은 단말기에서 저장된 대화방과 관련된 모든 자료 및 대화방이 삭제하게 되는 것이다.While using the chat room, the termination starts when a certain participant requests to end the chat room or a chat room participant leaves the chat room (S310), and when a chat room termination request signal is generated, the relay server stores the chat room encryption key (stored in the database of the relay server) ) is deleted (S320), and thereafter, the chat room end message is transmitted to the chat room participant terminal (S330). In step S340 , all data and chat rooms related to chat rooms stored in the terminal receiving the chat room termination message are deleted.

도 4는 본 발명의 일 실시예에 따른 암호화를 이용한 비밀 메시징 시스템을 이용해 메세지를 전송 및 수신하는 내용에 대한 순서도를 도시한다.4 is a flowchart showing the contents of transmitting and receiving a message using a secret messaging system using encryption according to an embodiment of the present invention.

대화방 참여자가 메세지를 보내는 경우, 대화방 암호키를 이용해 암호화되어 메세지가 중계 서버로 전송되는 단계(S 410); 중계 서버가 수신한 메세지를 참여자에게 전달하는 단계(S 420); 메세지를 수신한 단말기는 대화방 암호키를 이용해 복호화하여 단말기의 화면에 메세지를 표시하는 단계(S 430)를 포함한다. When the chat room participant sends a message, the message is encrypted using the chat room encryption key and transmitted to the relay server (S410); transmitting the message received by the relay server to the participant (S420); The terminal receiving the message decrypts it using the chat room encryption key and displays the message on the screen of the terminal (S430).

S 410 단계에서 메세지 전송시 단말기는 대화방 암호키를 이용해 메세지를 암호화하여 중계 서버로 전송하고, S 420 단계에서 중계 서버는 해당 내용을 데이터베이스부에 해당 메세지 수신 대상 수를 기록하고 수신인별로 메세지를 기록하고 수신인(참여자)에게 전달된다. 이 경우 수신인 단말기에 해당 메세지를 전송함과 동시에 중계 서버에서 기록된 내용은 삭제되고 데이테베이스부에 수신자를 등록한다. S 430 단계에서 메세지를 수신한 단말기는 대화방 암호키를 이용해 복호화하여 단말기 화면에 메세지를 표시하게 된다. 메세지를 수신한 단말기에서 상기 메세지를 저장하는 경우 상기 대화방 암호키를 이용해 암호화된 상태로 저장된다.When transmitting a message in step S410, the terminal encrypts the message using the chat room encryption key and transmits it to the relay server. In step S420, the relay server records the number of recipients of the message in the database unit and records the message for each recipient. and delivered to the recipient (participant). In this case, the message is transmitted to the recipient terminal, and the contents recorded in the relay server are deleted and the recipient is registered in the database. The terminal receiving the message in step S430 decrypts it using the chat room encryption key and displays the message on the terminal screen. When the terminal that has received the message stores the message, it is stored in an encrypted state using the chat room encryption key.

일정기간 동안 전달이 되지 않은 메세지는 전달 불가로 별도로 데이터베이스에 기록하고 삭제될 수 있다. 데이터베이스부는 수신인 수 및 수신자, 전송불가자 등을 관리 기록하는 것이며, 실제 메세지는 별도 관리하지 않는다.Messages that have not been delivered for a certain period of time cannot be delivered, so they can be separately recorded in the database and deleted. The database unit manages and records the number of recipients, recipients, and those unable to transmit, and does not manage the actual messages separately.

한편, 전체 메세지가 수신된 경우(전송 불가 포함), 발신자에게 해당 내용을 통보하고 통보 이후 데이터베이스에서 해당 메세지가 관련된 기록을 모두 삭제한다.On the other hand, if the entire message is received (including transmission impossible), the sender is notified and all records related to the message are deleted from the database after notification.

본 발명에 따르면 대화 참여자들이 모두 온라인에 있는 경우, 즉 실시간 대화 기능을 구동하고 있는 경우에는, 중계 서버에 메세지를 저장하는 단계를 생략하고 실시간으로 대화가 진행될 수 있다. 이 경우에는 중계서버는 메세지 작성자로부터 받은 메세지를 중계 서버에서 어떠한 처리 없이 수신자에게 그대로 전송한다. 다만, 이 경우에도 대화방 암호키를 이용한 메세지의 암호화/복호화 과정은 동일하게 진행된다. According to the present invention, when all the chat participants are online, that is, when the real-time chat function is running, the step of storing the message in the relay server can be omitted and the chat can proceed in real time. In this case, the relay server transmits the message received from the message creator to the receiver without any processing in the relay server. However, even in this case, the encryption/decryption process of the message using the chat room encryption key proceeds in the same way.

상기에서는 본 발명의 바람직한 실시예를 참조하여 설명하였지만, 해당 기술분야의 숙련된 당업자는 하기의 특허 청구 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although the above has been described with reference to the preferred embodiments of the present invention, those skilled in the art can variously modify and change the present invention without departing from the spirit and scope of the present invention as set forth in the following claims. You will understand that you can.

Claims (7)

하나 이상의 참여자 단말기; 및 중계 서버를 포함하고,
상기 단말기에서는 개인별 개인키 및 공개키의 생성이 가능하며,
상기 개인키 및 공개키는 대화방의 개설 또는 참여시 상기 중계 서버에 전달되고,
상기 중계 서버는 대화방의 개설시 대화방 암호키를 생성하며,
상기 생성된 대화방 암호키는 대화방의 참여자에게 개인별 공개키를 이용해 암호화되어 전달되고,
상기 중계 서버로부터 암호화된 대화방 암호키를 받은 단말기는 상기 대화방 암호키를 개인키로 복호화하는,
암호화를 이용한 비밀 메시징 시스템.
one or more participant terminals; and a relay server;
In the terminal, it is possible to generate individual private and public keys,
The private key and public key are transmitted to the relay server when opening or participating in a chat room,
The relay server generates a chat room encryption key when opening a chat room,
The generated chat room encryption key is encrypted and delivered to the chat room participant using an individual public key,
The terminal receiving the encrypted chat room encryption key from the relay server decrypts the chat room encryption key with a private key,
Secret messaging system using encryption.
제 1 항에 있어서,
이미 생성된 대화방을 다시 개설하는 경우,
상기 중계 서버에 대화방 암호키를 요청하여 대화방 암호키를 받아서 복호화하여 사용하는,
암호화를 이용한 비밀 메시징 시스템.
The method of claim 1,
If you open an already created chat room again,
requesting the chat room encryption key from the relay server to receive and decrypt the chat room encryption key,
Secret messaging system using encryption.
제 2 항에 있어서,
상기 중계 서버에 대화방 암호키를 요청하였을 때 상기 중계 서버로부터 응답이 없는 경우 상기 대화방은 삭제된 경우이므로 삭제 처리되는,
암호화를 이용한 비밀 메시징 시스템.
3. The method of claim 2,
If there is no response from the relay server when a chat room encryption key is requested from the relay server, the chat room is deleted and is processed,
Secret messaging system using encryption.
제 1 항에 있어서,
대화방 참여자가 메세지를 보내는 경우,
상기 대화방 암호키를 이용해 암호화하여 상기 중계 서버로 전송되고,
상기 중계 서버는 해당 메세지를 참여자에게 전송하며,
상기 메세지를 수신한 단말기는 상기 대화방 암호키를 이용해 복호화하여 상기 단말기의 화면에 표시하는,
암호화를 이용한 비밀 메시징 시스템.
The method of claim 1,
When a chat room participant sends a message,
It is encrypted using the chat room encryption key and transmitted to the relay server,
The relay server transmits the message to the participant,
The terminal receiving the message decrypts it using the chat room encryption key and displays it on the screen of the terminal,
Secret messaging system using encryption.
제 4 항에 있어서,
메세지의 송신 및 수신시 상기 중계 서버에서는 메세지 발신에 관한 정보 및 메세지 수신에 관한 정보를 기록하고,
메세지 송수신이 완료된 경우 상기 메세지 발신에 관한 정보 및 메세지 수신에 관한 정보를 삭제하는,
암호화를 이용한 비밀 메시징 시스템.
5. The method of claim 4,
When sending and receiving a message, the relay server records information about sending a message and information about receiving a message,
When the message transmission and reception is completed, the information on the message transmission and the information on the message reception are deleted,
Secret messaging system using encryption.
제 1 항에 있어서,
대화방 종료 요청 또는 대화방 참여자가 대화방을 나가는 경우,
상기 중계 서버에 저장되어 있는 대화방 암호키를 삭제하고, 대화방 참여자에게 대화방 종료 메세지를 전달하는,
암호화를 이용한 비밀 메시징 시스템.
The method of claim 1,
When a chat room termination request or a chat room participant leaves the chat room,
deleting the chat room encryption key stored in the relay server and delivering a chat room termination message to chat room participants,
Secret messaging system using encryption.
제 4 항에 있어서,
대화방 참여자가 모두 온라인에 있는 경우,
중계 서버에서 별도의 기록이 없이 메세지가 암호화 및 복호화되면서 대화가 진행되는,
암호화를 이용한 비밀 메시징 시스템.
5. The method of claim 4,
If all chat room participants are online,
Conversation proceeds as messages are encrypted and decrypted without separate records in the relay server.
Secret messaging system using encryption.
KR1020200026945A 2020-03-04 2020-03-04 Secret messaging system using encryption KR20210111978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200026945A KR20210111978A (en) 2020-03-04 2020-03-04 Secret messaging system using encryption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200026945A KR20210111978A (en) 2020-03-04 2020-03-04 Secret messaging system using encryption

Publications (1)

Publication Number Publication Date
KR20210111978A true KR20210111978A (en) 2021-09-14

Family

ID=77774363

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200026945A KR20210111978A (en) 2020-03-04 2020-03-04 Secret messaging system using encryption

Country Status (1)

Country Link
KR (1) KR20210111978A (en)

Similar Documents

Publication Publication Date Title
US10142300B1 (en) Decentralized authoritative messaging
US20170180393A1 (en) Confidential message exchange using benign, context-aware cover message generation
US9509681B2 (en) Secure instant messaging system
US6978378B1 (en) Secure file transfer system
CN101208900B (en) Secure instant messaging
US7082536B2 (en) System and method for computerized global messaging encryption
CN105391676B (en) Instant communication information processing method and processing device and system
US20080285756A1 (en) Random shared key
CN104394530A (en) Wechat content encryption system based on smartphone and implementation method of wechat content encryption system
JP4598494B2 (en) Network service system using temporary user identifier
US10523620B1 (en) Anonymous two way communications system and method
WO2018018726A1 (en) Group file management method, user terminal, and group chat system
US9160739B2 (en) Secure data transmission system
JP2005267433A (en) Network service system using user temporary identifier
CN111541603B (en) Independent intelligent safety mail terminal and encryption method
EP3282670A1 (en) Maintaining data security in a network device
US11265298B2 (en) Method for end-to-end transmission of a piece of encrypted digital information, application of this method and object implementing this method
KR102293610B1 (en) Secure instant messaging method and attaratus thereof
CN110881019A (en) Secure communication terminal, secure communication system and communication method thereof
KR20210111978A (en) Secret messaging system using encryption
CN109104361B (en) Instant messaging method, instant messaging device, electronic equipment and storage medium
US20240073187A1 (en) Controlled-access encrypted-communications system
JP2005149049A (en) Address generation system, address generation method, and address generation program
KR102387911B1 (en) Secure instant messaging method and attaratus thereof
CN110890968B (en) Instant messaging method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E601 Decision to refuse application