# US 2023/0155990 A1 · Message encryption method and electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0155990 A1
- Document ID: US20230155990A1
- Status: Published application
- Kind: A1
- Application number: 18/149,460
- Filed: 2023-01-03
- Published: 2023-05-18
- Earliest claimed: 2020-07-07
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Dohoon KIM; Sewon PARK; Jookyoung PARK
- Web page: https://patentgrep.com/patent/US20230155990A1

## CPC

- H04L 63/065: {for group communications (cryptographic mechanisms or cryptographic arrangements for key management involving conference or group key H04L9/0833)}
- H04L 5/0055: {Physical resource allocation for ACK/NACK (for physical mapping arrangements in ARQ protocols H04L1/1861)}
- H04L 63/00: {Network architectures or network communication protocols for network security (cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00; network architectures or network communication protocols for wireless network security H04W12/00; security arrangements for protecting computers or computer systems against unauthorised activity G06F21/00)}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 63/0435: {wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption (cryptographic mechanisms or cryptographic arrangements for symmetric key encryption H04L9/06)}
- H04L 63/0442: {wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption (cryptographic mechanisms or cryptographic arrangements for public-key encryption H04L9/30)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An electronic device is provided. The electronic device includes a communication module, a memory, and a server processor operably connected to the communication module and the memory. The server processor acquires, from the first electronic device, a first message encrypted based on first security information about the second electronic device, so as to transmit the first message to the second electronic device, acquires, from the second electronic device, a decryption failure signal for the first message so as to transmit the decryption failure signal to the first electronic device, acquires, from the second electronic device, second security information about the second electronic device so as to transmit same to the first electronic device, receives, from the first electronic device, a second message encrypted based on the second security information, and can transmit the received second message to the second electronic device.

## Claims

### Claim 1

A message server comprising:
a communication module configured to communicate with a first electronic device and a second electronic device;
a memory configured to store security information related to at least one electronic device; and
a server processor operatively connected to the communication module and the memory,
wherein the server processor is configured to:
acquire a first message encrypted based on first security information of the second electronic device from the first electronic device and transmit the first message to the second electronic device,
acquire a decryption failure signal for the first message from the second electronic device and transmit the decryption failure signal to the first electronic device,
acquire second security information of the second electronic device from the second electronic device and transmit the second security information to the first electronic device,
receive a second message encrypted based on the second security information from the first electronic device, and
transmit the received second message to the second electronic device.

### Claim 2 (depends on 1)

The message server of claim 1, wherein the server processor is further configured to:
acquire the security information related to the at least one electronic device in response to access of the at least one electronic device to the message server, and
store the acquired security information in the memory.

### Claim 3 (depends on 1)

The message server of claim 1, wherein the server processor is further configured to acquire the second security information from the second electronic device in response to the decryption failure signal for the first message.

### Claim 4 (depends on 1)

The message server of claim 1, wherein the server processor is further configured to identify whether the first message is encrypted, based on whether a field including security information exists among at least one field included in the first message.

### Claim 5 (depends on 1)

The message server of claim 1, wherein the first security information includes at least one piece of public key information for encrypting the first message and private key information for participating in a chat room.

### Claim 6 (depends on 1)

The message server of claim 1,
wherein the server processor is further configured to:
receive an invite message for participating in a group chat room from the first electronic device,
identify a third electronic device participating in the group chat room in response to a request signal, and
transmit the invite message to the third electronic device.

### Claim 7 (depends on 1)

The message server of claim 1, wherein the invite message includes a message in which a private key corresponding to the group chat room is encrypted, based on security information of the third electronic device.

### Claim 8

A first electronic device comprising:
a communication module configured to perform wireless communication with a message server and a second electronic device;
a memory configured to store security information acquired from the message server; and
at least one processor operatively connected to the communication module and the memory,
wherein the at least one processor is configured to:
encrypt a first message, based on first security information of the second electronic device for transmitting the first message,
transmit the encrypted first message to the second electronic device through the message server,
receive a decryption failure signal for the first message from the second electronic device through the message server,
receive second security information corresponding to the second electronic device from the second electronic device, and
encrypt a second message, based on the received second security information and transmit the second message to the second electronic device.

### Claim 9 (depends on 8)

The first electronic device of claim 8, wherein the at least one processor is further configured to:
count a number of generations of the decryption failure signal for the first message; and
in case that the number of generations exceeds a configured threshold value, display a notification related to transmission of the first message.

### Claim 10 (depends on 9)

The first electronic device of claim 9, wherein the at least one processor is further configured to:
in case that the number of generations exceeds a configured threshold value, generate a third message which is not encrypted and transmit the third message to the second electronic device.

### Claim 11 (depends on 8)

The first electronic device of claim 8,
wherein the at least one processor is further configured to:
add a field including the first security information to at least one field included in the first message, and
record security information in the added field to transmit the security information to the message server.

### Claim 12 (depends on 8)

The first electronic device of claim 8, wherein the first security information includes at least one piece of public key information for encrypting the first message and private key information for participating in a chat room.

### Claim 13

A method of encrypting a message through a message server, the method comprising:
acquiring a first message encrypted based on first security information of a second electronic device from a first electronic device and transmitting the first message to the second electronic device;
acquiring a decryption failure signal for the first message from the second electronic device and transmitting the decryption failure signal to the first electronic device;
acquiring second security information of the second electronic device from the second electronic device and transmitting the second security information to the first electronic device;
receiving a second message encrypted based on the second security information from the first electronic device; and
transmitting the received second message to the second electronic device.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
detecting access of at least one electronic device to the message server;
acquiring security information related to the at least one electronic device from the at least one electronic device in response to the access; and
storing the acquired security information in a memory of the message server.

### Claim 15 (depends on 13)

The method of claim 13, further comprising acquiring the second security information from the second electronic device in response to the decryption failure signal for the first message.

### Claim 16 (depends on 13)

The method of claim 13, further comprising:
counting a number of generations of the decryption failure signal for the first message by the first electronic device; and
in case that the number of generations exceeds a configured threshold value, displaying a notification related to transmission of the first message by the first electronic device.

### Claim 17 (depends on 13)

The method of claim 13, further comprising identifying whether the first message is encrypted based on whether there is a field for recording security information in at least one field included in the first message.

### Claim 18 (depends on 13)

The method of claim 13, further comprising:
receiving an invite message for participating in a group chat room from the first electronic device;
identifying a third electronic device participating in the group chat room in response to a request signal; and
transmitting the invite message to the third electronic device.

### Claim 19 (depends on 13)

The method of claim 13, wherein the invite message includes a message in which a private key corresponding to the group chat room is encrypted, based on security information of the third electronic device.

### Claim 20 (depends on 13)

The method of claim 13, wherein the first security information includes at least one piece of public key information for encrypting the first message and private key information for participating in a chat room.
