# US 2022/0294624 A1 · Encryption method and device, electronic apparatus and storage medium

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

- Number: US 2022/0294624 A1
- Document ID: US20220294624A1
- Status: Published application
- Kind: A1
- Application number: 17/351,583
- Filed: 2021-06-18
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: Innogrit Technologies Co., Ltd.
- Applicants: Innogrit Technologies Co., Ltd.
- Inventors: Hui LI; Chuan KE; Zhengtian FENG
- Web page: https://patentgrep.com/patent/US20220294624A1

## CPC

- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- G06F 21/60: Protecting data
- G06F 21/62: Protecting access to data via a platform, e.g. using keys or access control rules
- H04L 9/0863: {involving passwords or one-time passwords (network architectures or network communication protocols for using one-time keys in a packet data network H04L63/067)}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 9/3226: {using a predetermined code, e.g. password, passphrase or PIN (network architectures or network communication protocols for supporting authentication of entities using passwords in a packet data network H04L63/083)}
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present disclosure relates to an encryption method and device, an electronic apparatus, and a storage medium. The method comprises: determining whether at least one storage apparatus connected to the terminal apparatus includes a target storage apparatus with an encryption function; acquiring, if the storage apparatus includes the target storage apparatus, encryption information of the target storage apparatus; and generating, if the encryption status is unencrypted, a password setting instruction in response to setting a password, and sending the password setting instruction to the target storage apparatus. According to the encryption method of the embodiment of the present disclosure, the terminal apparatus can be used to determine the encryption information of the storage apparatus, and to set a password, so that the storage apparatus encrypts the data stored in its private partition based on the password. The encryption is executed by the storage apparatus without occupying the processing resources of the terminal apparatus. Besides, the shared partition is not required to be encrypted. Therefore, when accessing the data stored in the shared partition, there is no need to enter a password, which improves the convenience of operation.

## Claims

### Claim 1

An encryption method applicable to a terminal apparatus, the method comprising:
determining whether at least one storage apparatus connected to the terminal apparatus includes a target storage apparatus with an encryption function;
acquiring, if the at least one storage apparatus includes the target storage apparatus, encryption information of the target storage apparatus, wherein the encryption information includes partition information of the target storage apparatus and an encryption status of a private partition, and the partition information includes an address of a shared partition in the target storage apparatus and an address of the private partition; and
generating, if the encryption status is unencrypted, a password setting instruction in response to setting a password, and sending the password setting instruction to the target storage apparatus, such that the target storage apparatus encrypts data stored in the private partition in accordance with the password.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining whether the at least one storage apparatus connected to the terminal apparatus includes the target storage apparatus with the encryption function comprises:
generating an apparatus information querying instruction for the target storage apparatus with the encryption function;
sending the apparatus information querying instruction to the at least one storage apparatus; and
determining, in a case of receiving apparatus information corresponding to the apparatus information querying instruction, that the storage apparatus includes the target storage apparatus, and determining the storage apparatus sending the apparatus information as the target storage apparatus.

### Claim 3 (depends on 1)

The method according to claim 1, wherein acquiring, if the at least one storage apparatus includes the target storage apparatus, the encryption information of the target storage apparatus comprises:
scanning the target storage apparatus to obtain the partition information of the target storage apparatus;
sending the partition information to the target storage apparatus; and
receiving the encryption information from the target storage apparatus.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the method further comprises:
displaying a first interface for receiving a password input if the encryption status is encrypted; and
sending, in response to receiving a first password in the first interface, the first password to the target storage apparatus, such that the target storage apparatus verifies the first password.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the method further comprises:
executing, in a case of receiving a verification success message from the target storage apparatus, at least one of the following operations:
reading the data stored in the private partition;
writing data into the private partition;
deleting the data stored in the private partition;
formatting the private partition; or
changing a password of the private partition.

### Claim 6

An encryption method applicable to a controller of a storage apparatus, the method comprising:
determining, in response to the storage apparatus being connected to a terminal apparatus, an encryption status of a private partition in the storage apparatus;
generating, in a case of receiving partition information from the terminal apparatus, encryption information in accordance with the partition information and the encryption status, wherein the encryption information includes the partition information of the storage apparatus and the encryption status of the private partition, and the partition information includes an address of a shared partition in the storage apparatus and an address of the private partition;
sending the encryption information to the terminal apparatus; and
encrypting, in a case of the encryption status being unencrypted and a password setting instruction from the terminal apparatus being received, data stored in the private partition in accordance with a second password of the password setting instruction.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the method further comprises:
sending, in a case of receiving an apparatus information querying instruction from the terminal apparatus, apparatus information of the storage apparatus to the terminal apparatus.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the method further comprises:
verifying, in a case of the encryption status being encrypted and a third password from the terminal apparatus being received, the third password in accordance with the second password; and
sending, in a case of verification success, a verification success message to the terminal apparatus.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the method further comprises:
decrypting, in a case of receiving a data reading instruction from the terminal apparatus, the encrypted data corresponding to an address in the data reading instruction in accordance with the second password, and sending the decrypted data to the terminal apparatus.

### Claim 10

An encryption device provided at a terminal apparatus, the device comprising:
a target storage apparatus determining module configured to determine whether at least one storage apparatus connected to the terminal apparatus includes a target storage apparatus with an encryption function;
an encryption information acquiring module configured to acquire, if the storage apparatus includes the target storage apparatus, encryption information of the target storage apparatus, wherein the encryption information includes partition information of the target storage apparatus and an encryption status of a private partition, and the partition information includes an address of a shared partition and an address of the private partition in the target storage apparatus; and
a password setting module configured to: generate, if the encryption status is unencrypted, a password setting instruction in response to setting a password, and send the password setting instruction to the target storage apparatus, such that the target storage apparatus encrypts data stored in the private partition in accordance with the password.

### Claim 11

An encryption device provided at a controller of a storage apparatus, the device comprising:
an encryption status determining module configured to determine, in response to the storage apparatus being connected to a terminal apparatus, an encryption status of a private partition in the storage apparatus;
an encryption information generating module configured to generate, in a case of receiving partition information from the terminal apparatus, encryption information in accordance with the partition information and the encryption status, wherein the encryption information includes the partition information of the storage apparatus and the encryption status of the private partition, and the partition information includes an address of a shared partition and an address of the private partition in the storage apparatus;
a transmission module configured to send the encryption information to the terminal apparatus; and
an encryption module configured to encrypt, in a case of the encryption status being unencrypted and a password setting instruction from the terminal apparatus being received, data stored in the private partition in accordance with a second password of the password setting instruction.

### Claim 12

An electronic apparatus, comprising:
a processor; and
a memory configured to store processor-executable instructions,
wherein the processor is configured to execute instructions stored in the memory to perform a method, the method comprising:
determining whether at least one storage apparatus connected to a terminal apparatus includes a target storage apparatus with an encryption function;
acquiring, if the at least one storage apparatus includes the target storage apparatus, encryption information of the target storage apparatus, wherein the encryption information includes partition information of the target storage apparatus and an encryption status of a private partition, and the partition information includes an address of a shared partition in the target storage apparatus and an address of the private partition; and
generating, if the encryption status is unencrypted, a password setting instruction in response to setting a password, and sending the password setting instruction to the target storage apparatus, such that the target storage apparatus encrypts data stored in the private partition in accordance with the password.

### Claim 13

A non-transitory computer readable storage medium having computer program instructions stored thereon, which when executed by a processor, cause the processor to perform a method, the method comprising:
determining whether at least one storage apparatus connected to a terminal apparatus includes a target storage apparatus with an encryption function;
acquiring, if the at least one storage apparatus includes the target storage apparatus, encryption information of the target storage apparatus, wherein the encryption information includes partition information of the target storage apparatus and an encryption status of a private partition, and the partition information includes an address of a shared partition in the target storage apparatus and an address of the private partition; and
generating, if the encryption status is unencrypted, a password setting instruction in response to setting a password, and sending the password setting instruction to the target storage apparatus, such that the target storage apparatus encrypts data stored in the private partition in accordance with the password.

### Claim 14 (depends on 13)

The computer readable storage medium according to claim 13, wherein determining whether the at least one storage apparatus connected to the terminal apparatus includes the target storage apparatus with the encryption function comprises:
generating an apparatus information querying instruction for the target storage apparatus with the encryption function;
sending the apparatus information querying instruction to the at least one storage apparatus; and
determining, in a case of receiving apparatus information corresponding to the apparatus information querying instruction, that the storage apparatus includes the target storage apparatus, and determining the storage apparatus sending the apparatus information as the target storage apparatus.

### Claim 15 (depends on 13)

The computer readable storage medium according to claim 13, wherein acquiring, if the at least one storage apparatus includes the target storage apparatus, the encryption information of the target storage apparatus comprises:
scanning the target storage apparatus to obtain the partition information of the target storage apparatus;
sending the partition information to the target storage apparatus; and
receiving the encryption information from the target storage apparatus.

### Claim 16 (depends on 13)

The computer readable storage medium according to claim 13, wherein the method further comprises:
displaying a first interface for receiving a password input if the encryption status is encrypted; and
sending, in response to receiving a first password in the first interface, the first password to the target storage apparatus, such that the target storage apparatus verifies the first password.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the method further comprises:
executing, in a case of receiving a verification success message from the target storage apparatus, at least one of the following operations:
reading the data stored in the private partition;
writing data into the private partition;
deleting the data stored in the private partition;
formatting the private partition; or
changing a password of the private partition.
