# US 11,120,142 B2 · Device and method for increasing the security of a database

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

- Number: US 11,120,142 B2
- Document ID: US11120142B2
- Status: Granted
- Kind: B2
- Application number: 16/189,906
- Filed: 2018-11-13
- Published: 2019-05-16
- Granted: 2021-09-14
- Earliest claimed: 2017-11-13
- Assignees: Alibaba Group Holding Limited
- Applicants: Alibaba Group Holding Limited
- Inventors: Yuanmi Chen
- Web page: https://patentgrep.com/patent/US11120142B2

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 16/3331: Query processing
- G06F 16/90344: {by using string matching techniques}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F 2221/2107: File encryption
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The security of a database is substantially increased by partitioning raw data, irreversibly encrypting the partitioned raw data, reversibly encrypting the raw data, and then storing pairs of irreversibly encrypted data and reversibly encrypted data. In response to a search query, the query is partitioned and irreversibly encrypted, and the irreversibly encrypted query is used to search the stored irreversibly encrypted data. When a match is found, the reversibly encrypted data paired with the stored irreversibly encrypted data that matches the irreversibly encrypted query is output in response to the search query.

## Claims

### Claim 1

A data processing method comprising:
receiving a string of raw data;
partitioning the string of raw data to form a plurality of raw substrings;
irreversibly encrypting the plurality of raw substrings to form a plurality of irreversibly encrypted substrings;
reversibly encrypting the string of raw data to form a string of reversibly encrypted raw data;
associating the plurality of irreversibly encrypted substrings with the string of reversibly encrypted raw data such that each irreversibly encrypted substring is associated with the string of reversibly encrypted raw data;
storing the plurality of irreversibly encrypted substrings as a plurality of stored irreversibly encrypted substrings, and storing the string of reversibly encrypted raw data associated with each irreversibly encrypted substring as a stored reversibly encrypted string;
receiving a query word;
in response to receiving the query word, searching the plurality of stored irreversibly encrypted substrings corresponding to the query word; and
in response to searching, outputting the stored irreversibly encrypted substrings and the stored reversibly encrypted strings corresponding to the query word as a query result.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
partitioning the query word to form a plurality of sub-query words; and
irreversibly encrypting the plurality of sub-query words to form a plurality of irreversibly encrypted sub-query words,
wherein searching the plurality of stored irreversibly encrypted substrings corresponding to the query word includes searching the plurality of stored irreversibly encrypted substrings with the plurality of irreversibly encrypted sub-query words to find stored irreversibly encrypted substrings that match the irreversibly encrypted sub-query words such that each irreversibly encrypted sub-query word has a matching stored irreversibly encrypted substring, and
wherein outputting the stored irreversibly encrypted substrings and the stored reversibly encrypted strings corresponding to the query word includes outputting the stored reversibly encrypted strings that are associated with the stored irreversibly encrypted substrings that match the irreversibly encrypted sub-query words as the query result.

### Claim 3 (depends on 2)

The method of claim 2, wherein outputting the stored irreversibly encrypted substrings and the stored reversibly encrypted strings corresponding to the query word includes outputting the stored irreversibly encrypted substrings that match the irreversibly encrypted sub-query words.

### Claim 4 (depends on 2)

The method of claim 2, wherein the query word is partitioned using a sliding window.

### Claim 5 (depends on 2)

The method of claim 2, wherein multiple stored irreversibly encrypted substrings match a single irreversibly encrypted sub-query word.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
decrypting the stored reversibly encrypted strings associated with the multiple stored irreversibly encrypted substrings to form a plurality of decrypted strings;
determining decrypted strings, from the plurality of decrypted strings, which match an unencrypted query word; and
for each match, adding the corresponding irreversibly encrypted substring and associated reversibly encrypted string to the query result.

### Claim 7 (depends on 2)

The method of claim 2, wherein partitioning the string of raw data to form a plurality of raw substrings comprises partitioning the string based on a first preset partitioning rule such that the length of each of the plurality of raw substrings is same.

### Claim 8 (depends on 7)

The method of claim 7, wherein partitioning the query word to form a plurality of sub-query words comprises partitioning the query word based on a second preset partitioning rule, and wherein the second preset partitioning rule and the first preset partitioning rule are same.

### Claim 9 (depends on 1)

The method of claim 1, wherein the string of raw data is partitioned using a sliding window.

### Claim 10

A non-transitory computer-readable storage medium having embedded therein program instructions, which when executed by a processor, causes the processor to execute a method of data processing, the method comprising:
receiving a string of raw data;
partitioning the string of raw data to form a plurality of raw substrings;
irreversibly encrypting the plurality of raw substrings to form a plurality of irreversibly encrypted substrings;
reversibly encrypting the string of raw data to form a string of reversibly encrypted raw data;
associating the plurality of irreversibly encrypted substrings with the string of reversibly encrypted raw data such that each irreversibly encrypted substring is associated with the string of reversibly encrypted raw data;
storing the plurality of irreversibly encrypted substrings as a plurality of stored irreversibly encrypted substrings, and storing the string of reversibly encrypted raw data associated with each irreversibly encrypted substring as a stored reversibly encrypted string;
receiving a query word;
in response to receiving the query word, searching the plurality of stored irreversibly encrypted substrings corresponding to the query word; and
in response to searching, outputting the stored irreversibly encrypted substrings and the stored reversibly encrypted strings corresponding to the query word as a query result.

### Claim 11 (depends on 10)

The medium of claim 10, wherein the method further comprises:
partitioning the query word to form a plurality of sub-query words; and
irreversibly encrypting the plurality of sub-query words to form a plurality of irreversibly encrypted sub-query words,
wherein searching the plurality of stored irreversibly encrypted substrings corresponding to the query word includes searching the plurality of stored irreversibly encrypted substrings with the plurality of irreversibly encrypted sub-query words to find stored irreversibly encrypted substrings that match the irreversibly encrypted sub-query words such that each irreversibly encrypted sub-query word has a matching stored irreversibly encrypted substring; and
wherein outputting the stored irreversibly encrypted substrings and the stored reversibly encrypted strings corresponding to the query word includes outputting the stored reversibly encrypted substrings that are associated with the stored irreversibly encrypted substrings that match the irreversibly encrypted sub-query words as the query result.

### Claim 12 (depends on 11)

The medium of claim 11, wherein outputting the stored irreversibly encrypted substrings and the stored reversibly encrypted strings corresponding to the query word includes outputting the stored irreversibly encrypted substrings that match the irreversibly encrypted sub-query words.

### Claim 13 (depends on 11)

The medium of claim 11, wherein the query word is partitioned using a sliding window.

### Claim 14 (depends on 11)

The medium of claim 11, wherein multiple stored irreversibly encrypted substrings match a single irreversibly encrypted sub-query word.

### Claim 15 (depends on 14)

The medium of claim 14, further comprising;
decrypting the stored reversibly encrypted strings associated with the multiple stored irreversibly encrypted substrings to form a plurality of decrypted strings;
determining decrypted strings, from the plurality of decrypted strings, which match an unencrypted query word; and
for each match, adding the corresponding irreversibly encrypted substring and associated reversibly encrypted string to the query result.

### Claim 16 (depends on 10)

The medium of claim 10, wherein the string of raw data is partitioned using a sliding window.

### Claim 17

A data device comprising:
a memory that stores instructions and data in a data structure;
a processor coupled to the memory, the processor to:
receive a string of raw data;
partition the string of raw data to form a plurality of raw substrings;
irreversibly encrypt the plurality of raw substrings to form a plurality of irreversibly encrypted substrings;
reversibly encrypt the string of raw data to form a string of reversibly encrypted raw data;
associate the plurality of irreversibly encrypted substrings with the string of reversibly encrypted raw data such that each irreversibly encrypted substring is associated with the string of reversibly encrypted raw data;
store the plurality of irreversibly encrypted substrings as a plurality of stored irreversibly encrypted substrings, and store the string of reversibly encrypted raw data associated with each irreversibly encrypted substring as a stored reversibly encrypted string;
receive a query word;
in response to receipt of the query word, search the plurality of stored irreversibly encrypted substrings corresponding to the query word; and
in response to the search, output the stored irreversibly encrypted substrings and the stored reversibly encrypted strings corresponding to the query word as a query result.

### Claim 18 (depends on 17)

The device of claim 17, wherein the processor to further:
partition the query word to form a plurality of sub-query words;
irreversibly encrypt the plurality of sub-query words to form a plurality of irreversibly encrypted sub-query words,
wherein to search of the plurality of stored irreversibly encrypted substrings corresponding to the query word, the processor searches the plurality of stored irreversibly encrypted substrings with the plurality of irreversibly encrypted sub-query words to find stored irreversibly encrypted substrings that match the irreversibly encrypted sub-query words such that each irreversibly encrypted sub-query word has a matching stored irreversibly encrypted substring; and
wherein to output the stored irreversibly encrypted substrings and the stored reversibly encrypted strings corresponding to the query word, the processor outputs the stored reversibly encrypted strings that are associated with the stored irreversibly encrypted substrings that match the irreversibly encrypted sub-query words as the query result.

### Claim 19 (depends on 18)

The device of claim 18, wherein to output the stored irreversibly encrypted substrings and the stored reversibly encrypted strings corresponding to the query word the processor outputs the stored irreversibly encrypted substrings that match the irreversibly encrypted sub-query words.

### Claim 20 (depends on 18)

The device of claim 18, wherein the query word is partitioned using a sliding window.

### Claim 21 (depends on 18)

The device of claim 18, wherein the string of raw data is partitioned using a sliding window.

### Claim 22 (depends on 21)

The device of claim 21,
wherein multiple stored irreversibly encrypted substrings match a single irreversibly encrypted sub-query word; and
the processor to further:
decrypt the stored reversibly encrypted strings associated with the multiple stored irreversibly encrypted substrings to form a plurality of decrypted strings;
determine decrypted strings, from the plurality of decrypted strings, which match an unencrypted query word; and
for each match, add the corresponding irreversibly encrypted sub string and associated reversibly encrypted string to the query result.
