# US 2023/0412399 A1 · Database Multi-Authentication Method and System, Terminal, 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 2023/0412399 A1
- Document ID: US20230412399A1
- Status: Published application
- Kind: A1
- Application number: 18/250,935
- Filed: 2021-09-30
- Published: 2023-12-21
- Earliest claimed: 2020-11-17
- Assignees: Inspur Suzhou Intelligent Technology Co., Ltd.
- Applicants: Inspur Suzhou Intelligent Technology Co., Ltd.
- Inventors: Biaoqiang WU
- Web page: https://patentgrep.com/patent/US20230412399A1

## CPC

- H04L 9/3268: {using certificate validation, registration, distribution or revocation, e.g. certificate revocation list [CRL]}
- H04L 9/0869: {involving random numbers or seeds}
- H04L 9/3073: {involving pairings, e.g. identity based encryption [IBE], bilinear mappings or bilinear pairings, e.g. Weil or Tate pairing}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Provided is a database multi-authentication method and system, a terminal, and a storage medium. The method comprises: initializing a hardware authentication certificate carrier by means of a programming interface, and storing a public key of the hardware authentication certificate carrier and a user certificate public name; taking the user certificate public name as a database user name, and generating a standard message digest value of the database user name; receiving an authentication request sent from a client and verifying a user certificate in the authentication request, and returning an initial random number to the client after the verification is passed; receiving a signature random number sent from the client, and using the public key to decrypt the signature random number to obtain a random number; in response to determining that the random number is consistent with the initial random number, acquiring an message digest value of a client user name, and in response to determining that the message digest value of the client user name is consistent with the standard message digest value, determining that the client passes the authentication.

## Claims

### Claim 1

A database multi-authentication method, comprising:
initializing a hardware authentication certificate carrier by means of a programming interface, and storing a public key of the hardware authentication certificate carrier and a user certificate public name;
taking the user certificate public name as a database user name, and generating a standard message digest value of the database user name;
receiving an authentication request sent from a client and verifying a user certificate in the authentication request, and returning an initial random number to the client after the verification is passed; and
receiving a signature random number sent from the client, and using the public key to decrypt the signature random number to obtain a random number; in response to determining that the random number is consistent with the initial random number, acquiring a message digest value of a client user name, and in response to determining that the message digest value of the client user name is consistent with the standard message digest value, determining that the client passes the authentication.

### Claim 2 (depends on 1)

The method as claimed in claim 1, wherein initializing the hardware authentication certificate carrier by means of a programming interface comprises:
inputting user information into an authentication management function of the hardware authentication certificate carrier, and logging in to the authentication management function;
generating a key pair comprising a private key and a public key by using the authentication management function, and storing the private key into a storage medium of the hardware authentication certificate carrier;
generating a user certificate by using a certificate generating tool according to the key pair;
specifying an administrator account of the hardware authentication certificate carrier, and setting a maximum number of attempts for an administrator and a user to log in to the authentication management function.

### Claim 3 (depends on 1)

The method as claimed in claim 1, wherein the authentication request sent by the client comprises:
identifying, by the client, the hardware authentication certificate carrier;
inputting, by the client, the user information into the hardware authentication certificate carrier to log in to the hardware authentication certificate carrier;
reading, by the client, the user certificate from the hardware authentication certificate carrier, and generating the authentication request according to the user certificate.

### Claim 4 (depends on 1)

The method as claimed in claim 1, wherein receiving the authentication request sent from the client, verifying the user certificate in the authentication request, and returning the initial random number to the client after the verification is passed comprise:
extracting a user certificate from the authentication request, and judging whether the user certificate matches local stored legitimate user certificate;
in response to determining that the user certificate matches local stored legitimate user certificate,
generating a random number with a specified number of digits, and sending the random number to the client, and storing the random number into server as an initial random number; and
in response to determining that the user certificate does not match local stored legitimate user certificate, determining that an authentication fails.

### Claim 5 (depends on 1)

The method as claimed in claim 1, wherein in response to determining that the random number is consistent with the initial random number, acquiring the message digest value of the client user name comprises:
after verification of consistency between the random number and the initial random number is passed, acquiring a user certificate public name read by the client from the hardware authentication certificate carrier;
calculating a message digest value of the user certificate public name by using a message digest algorithm.

### Claim 6

(canceled)

### Claim 7

(canceled)

### Claim 8

(canceled)

### Claim 9

A terminal, comprising a memory and one or more processors, wherein the memory stores computer readable instructions, when executed by the processors, make the one or more processors to:
initialize a hardware authentication certificate carrier by means of a programming interface, and store a public key of the hardware authentication certificate carrier and a user certificate public name;
take the user certificate public name as a database user name, and generate a standard message digest value of the database user name;
receive an authentication request sent from a client and verify a user certificate in the authentication request, and return an initial random number to the client after the verification is passed; and
receive a signature random number sent from the client, and use the public key to decrypt the signature random number to obtain a random number; in response to determining that the random number is consistent with the initial random number, acquire a message digest value of a client user name, and in response to determining that the message digest value of the client user name is consistent with the standard message digest value, determine that the client passes the authentication.

### Claim 10

A computer readable storage medium, storing computer readable instructions, wherein the computer readable instructions, when executed by one or more processors, make the one or more processors to:
initialize a hardware authentication certificate carrier by means of a programming interface, and store a public key of the hardware authentication certificate carrier and a user certificate public name;
take the user certificate public name as a database user name, and generate a standard message digest value of the database user name;
receive an authentication request sent from a client and verify a user certificate in the authentication request, and return an initial random number to the client after the verification is passed; and
receive a signature random number sent from the client, and use the public key to decrypt the signature random number to obtain a random number; in response to determining that the random number is consistent with the initial random number, acquire a message digest value of a client user name, and in response to determining that the message digest value of the client user name is consistent with the standard message digest value, determine that the client passes the authentication.

### Claim 11 (depends on 1)

The method as claimed in claim 1, wherein initializing the hardware authentication certificate carrier by means of a programming interface comprises:
dividing a sizes of a public storage area and a hidden storage area in the hardware authentication certificate carrier.

### Claim 12 (depends on 1)

The method as claimed in claim 1, before receiving a signature random number sent from the client, the method further comprises:
the client submits a random number sent by a server to the hardware authentication certificate carrier for signature, and then sends the random number to the server for authentication.

### Claim 13 (depends on 9)

The terminal as claimed in claim 9, the one or more processors are configured to:
input user information into an authentication management function of the hardware authentication certificate carrier, and log in to the authentication management function;
generate a key pair comprising a private key and a public key by using the authentication management function, and store the private key into a storage medium of the hardware authentication certificate carrier;
generate a user certificate by using a certificate generating tool according to the key pair;
specify an administrator account of the hardware authentication certificate carrier, and set a maximum number of attempts for an administrator and a user to log in to the authentication management function.

### Claim 14 (depends on 9)

The terminal as claimed in claim 9, wherein the authentication request sent by the client comprises:
identifying, by the client, the hardware authentication certificate carrier;
inputting, by the client, the user information into the hardware authentication certificate carrier to log in to the hardware authentication certificate carrier;
reading, by the client, the user certificate from the hardware authentication certificate carrier, and generating the authentication request according to the user certificate.

### Claim 15 (depends on 9)

The terminal as claimed in claim 9, the one or more processors are configured to:
extract a user certificate from the authentication request, and judge whether the user certificate matches local stored legitimate user certificate;
in response to determining that the user certificate matches local stored legitimate user certificate, generate a random number with a specified number of digits, and send the random number to the client, and store the random number into server as an initial random number; and
in response to determining that the user certificate does not match local stored legitimate user certificate, determine that an authentication fails.

### Claim 16 (depends on 9)

The terminal as claimed in claim 9, the one or more processors are configured to:
after verification of consistency between the random number and the initial random number is passed, acquire a user certificate public name read by the client from the hardware authentication certificate carrier;
calculate a message digest value of the user certificate public name by using a message digest algorithm.

### Claim 17 (depends on 9)

The terminal as claimed in claim 9, the one or more processors are configured to:
divide a sizes of a public storage area and a hidden storage area in the hardware authentication certificate carrier.

### Claim 18 (depends on 9)

The terminal as claimed in claim 9, wherein the client submits a random number sent by a server to the hardware authentication certificate carrier for signature, and then sends the random number to the server for authentication.

### Claim 19 (depends on 10)

The computer readable storage medium as claimed in claim 10, the one or more processors are configured to:
input user information into an authentication management function of the hardware authentication certificate carrier, and log in to the authentication management function;
generate a key pair comprising a private key and a public key by using the authentication management function, and store the private key into a storage medium of the hardware authentication certificate carrier;
generate a user certificate by using a certificate generating tool according to the key pair;
specify an administrator account of the hardware authentication certificate carrier, and set a maximum number of attempts for an administrator and a user to log in to the authentication management function.

### Claim 20 (depends on 10)

The computer readable storage medium as claimed in claim 10, wherein the authentication request sent by the client comprises:
identifying, by the client, the hardware authentication certificate carrier;
inputting, by the client, the user information into the hardware authentication certificate carrier to log in to the hardware authentication certificate carrier;
reading, by the client, the user certificate from the hardware authentication certificate carrier, and generating the authentication request according to the user certificate.

### Claim 21 (depends on 10)

The computer readable storage medium as claimed in claim 10, the one or more processors are configured to:
extract a user certificate from the authentication request, and judge whether the user certificate matches local stored legitimate user certificate;
in response to determining that the user certificate matches local stored legitimate user certificate, generate a random number with a specified number of digits, and send the random number to the client, and store the random number into server as an initial random number; and
in response to determining that the user certificate does not match local stored legitimate user certificate, determine that an authentication fails.

### Claim 22 (depends on 10)

The computer readable storage medium as claimed in claim 10, the one or more processors are configured to:
after verification of consistency between the random number and the initial random number is passed, acquire a user certificate public name read by the client from the hardware authentication certificate carrier;
calculate a message digest value of the user certificate public name by using a message digest algorithm.

### Claim 23 (depends on 10)

The computer readable storage medium as claimed in claim 10, the one or more processors are configured to:
divide a sizes of a public storage area and a hidden storage area in the hardware authentication certificate carrier.
