System and method for tenant key backup and recovery based on mobile terminal

By using Shamir threshold cryptography technology and HMAC-SM3 algorithm on mobile terminals, the tenant keys are backed up and restored, solving the problems of inconvenient key management and high dependencies in the existing technology, and improving the password Key security and management efficiency.

CN118984459AInactive Publication Date: 2024-11-19GUANGDONG ELECTRONIC CERTIFICATION AUTHORITY CO LTD

Patent Information

Application Number
CN202411294513.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-11-19
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology cannot realize cross-domain backup and recovery of tenant keys between different cloud service providers, and it depends on cloud service provider operation and maintenance personnel, and lacks convenient key management and recovery mechanisms.

Method used

Using a mobile terminal-based system, the key management module, key backup and recovery module and identity authentication module are used to realize the SM4-by-item encryption and file integrity protection of tenant keys through key management module, key backup and recovery module and identity authentication module. Allow tenant administrators to backup and restore keys on mobile terminals, and support key management across cloud service providers.

Benefits of technology

It realizes secure and reliable backup and recovery of tenant keys, reduces dependence on a single cloud service provider, improves data migration flexibility and business continuity, enhances the robustness and risk resistance of key management, and ensures Confidentiality and integrity of the key.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118984459A_ABST
    Figure CN118984459A_ABST
Patent Text Reader

Abstract

The invention discloses a tenant key backup and recovery system and method based on a mobile terminal, and the system comprises a key management module, a key backup and recovery module, an identity authentication module and a mobile password module. A tenant key administrator is allowed to back up and recover a tenant key at a mobile terminal by using a mobile password module, and the mobile password module is used for performing signature authentication and encryption and decryption under the mobile internet and protecting an encryption key by adopting a shamir threshold password technology at the same time; the secret key backup file format is used for performing SM4 symmetric encryption protection on secret key pairs of tenants one by one, and file integrity is ensured through HMAC-SM3. According to the method, cross-cloud service providers are supported, the secret key can be backed up and recovered to different cloud service providers, the dependence on the cloud service providers is reduced, and meanwhile, the security, confidentiality and integrity of the secret key can be effectively ensured by adopting a secret key backup format.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a system, method, device and storage medium for backing up and restoring cloud environment tenant keys using a mobile terminal. Background Art

[0002] With the rapid development of cloud services, more and more tenants are hosting their business keys on cloud service providers' cryptographic devices and servers. The tenants' business keys are generated by the cloud service providers' cryptographic devices, encrypted by the cloud service providers' cryptographic devices, and stored in the cloud service providers' database.

[0003] For tenant business key backup and recovery, the current common practice is for the cloud service provider's operation and maintenance personnel to fully back up the entire database, and then restore the key by importing the data into another database. This method has many disadvantages: first, when the tenant business is migrated, it cannot meet the needs of cross-cloud service providers to back up and restore tenant keys; second, it can only rely on the cloud service provider's operation and maintenance personnel. In an emergency, it is impossible for the tenant key administrator to conveniently back up and restore the key.

[0004] To this end, the present application specifically proposes a system and method for tenant key backup and recovery based on mobile terminals to solve the above technical problems, so as to meet the requirements that tenant keys can be backed up and restored securely and reliably across cloud service providers anytime and anywhere. Summary of the invention

[0005] The main purpose of the present invention is to provide a system and method for tenant key backup and recovery based on mobile terminals to solve the technical problems raised in the background technology and to meet the requirements that tenant keys can be backed up and restored securely and reliably across cloud service providers anytime and anywhere.

[0006] The present invention adopts the following technical solutions to solve the above technical problems: A tenant key backup and recovery system based on a mobile terminal includes a key management module, a key backup and recovery module, an identity authentication module and a mobile password module. The system is based on the tenant key backup file format and uses the mobile password module to allow the tenant key administrator to back up and restore the tenant key on the mobile terminal, wherein: The mobile password module is used to perform signature authentication and encryption and decryption in the mobile Internet, ensuring the security of key operations and the integrity and confidentiality of the communication process, and at the same time using Shamir threshold cryptography technology to protect encryption keys, effectively controlling the administrator's operating authority; The key backup file format is used to perform SM4 symmetric encryption protection on the tenant's key pairs one by one, and ensure the file integrity through HMAC-SM3; The administrator sets a specified number for key management operations, including generating, deleting, backing up, and restoring keys.

[0007] Preferably, the data format of the key backup file includes: The metadata area is used to record the ciphertext data after each administrator's public key encrypts the master key component, and generates backup components that match the number of administrators during the backup process, while recording the hash value to verify the integrity of the file; The ciphertext data area is used to store the ciphertext data of the tenant key. Preferably, the master key in the metadata area is split using Shamir threshold cryptography technology. Assuming that the number of administrators specified is N, X represents the administrator's number, X∈[1,N], there exists: Version number: represents the current backup file version recorded; Data length of component X: represents the length of component ID and component ciphertext; Component X ID: represents the administrator ID recorded in the system; Ciphertext of component X: represents the ciphertext after the key is encrypted with the Xth administrator's public key; Ciphertext area HMAC-SM3: represents the value after HMAC-SM3 is performed on the ciphertext data of the entire key. The key is also the master key.

[0008] Preferably, there is i∈[1,n] in the ciphertext data area, which represents the i-th key data and contains n pieces of data in total, where: Ciphertext length: represents the ciphertext length of key No. i; Ciphertext key data: represents the i-th key data content of the ciphertext encrypted using the master key; During the key backup process, the master key will be split into the number of key components specified by the administrator using the Shamir threshold cryptography technology, and then the key components will be encrypted using the administrator's public key; When recovering the key, any y-2 administrators can recover the master key by decrypting the key component through the mobile password module, and then decrypt the ciphertext data area of ​​the key data. y represents the number of designated administrators.

[0009] Preferably, a method for backing up and restoring a tenant key based on a mobile terminal is performed based on the above system and includes the following specific operation steps: S1. A specified number of administrators register their identities in mobile terminals; S2. Perform tenant key backup operation based on mobile terminal; S3. Perform a tenant key recovery operation based on the mobile terminal.

[0010] Preferably, the specific operation steps of step S1 include: S11. The user clicks on Add Administrator on the mobile terminal and authenticates the user through SMS verification code or face recognition; S12. The cloud service provider's password service system identifies its administrator identity, and then the mobile password module in the mobile terminal generates a key pair and sends its public key to the cloud service provider's password service system, and finally the cloud service provider's password service system saves its public key; S13. Repeat steps S11-S12 until the specified number of administrators have completed registration and addition.

[0011] Preferably, the specific operation steps of step S2 include: S21. The tenant administrator clicks Start Backup on the mobile terminal and authenticates his identity through the mobile password module signature; S22. The cloud service provider's cryptographic service system verifies the signature value and initializes the backup operation, specifically: generating a master key and splitting it into a specified number of key components using the Shamir threshold algorithm, and then sending backup notifications to the corresponding administrators in turn; S23. The administrator receives the backup notification on the mobile terminal and performs signature authentication; S24. After the identity authentication module passes the authentication, the cloud service provider's cryptographic service system uses the administrator's public key to encrypt the key component to obtain the ciphertext, and saves the administrator ID and the ciphertext key component to the backup file; S25. Loop through the steps S21-S24 until the specified number of administrators are authenticated and each key component is encrypted successfully; S26. After the components of the master key have been encrypted and protected, the cloud service provider's cryptographic service system will use the master key to encrypt the key information of the tenant to be protected and write it to the backup file, and finally calculate HMAC-SM3, and then append it to the backup file structure; S27. Generate a key backup file and download it back to the administrator's mobile terminal to complete the key backup.

[0012] Preferably, the specific operation steps of step S3 include: S31. The administrator clicks Start Recovery on the mobile terminal and uploads the key backup file to authenticate his identity through the mobile password module; S32. The cloud service provider's password service system verifies the HMAC-SM3 of the file, parses it to obtain the administrator ID and the master key component of the corresponding ciphertext, and then sends a recovery notification to the administrator in turn; S33. The administrator receives the recovery notification on the mobile terminal and performs signature authentication; S34. After the identity authentication module passes the authentication, the cloud service provider's cryptographic service system uses a collaborative decryption method to decrypt the key components of each ciphertext to obtain the key components; S35. Loop the S32-S34 operations until at least z-2 administrators are authenticated and their respective ciphertext key components are successfully decrypted, where z represents the number of registered administrators; S36. The cloud service provider's cryptographic service system uses the Shamir threshold algorithm to restore the master key through the key components; S37. Use the master key to decrypt the ciphertext key data of all tenants, and then restore it to the cryptographic service systems of different cloud service providers, and send a successful recovery notification to the mobile terminal.

[0013] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0014] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0015] It can be seen from the above technical solution that the present invention provides a system and method for tenant key backup and recovery based on a mobile terminal. Compared with the prior art, the present invention has the following advantages: 1. The system of the present invention can support cross-cloud service providers by setting a dedicated key backup file format for tenant keys. By supporting the backup and recovery of keys between different cloud service providers, the dependence on a single cloud service provider can be significantly reduced, the flexibility of data migration and business continuity are enhanced, and users can be ensured to switch freely in a multi-cloud environment, thereby improving service availability and independence.

[0016] 2. The key backup file format adopted in the present invention greatly improves the security level of backup data by implementing SM4 symmetric encryption on tenant key pairs one by one and using HMAC-SM3 to ensure file integrity, effectively protects keys from unauthorized access and tampering, ensures the confidentiality and integrity of data, and is more in line with key backup and recovery management requirements.

[0017] 3. The present invention realizes redundant backup of key components by integrating Shamir threshold cryptography technology, allowing the master key to be restored even if up to two key components are lost. This mechanism not only enhances the robustness of key management, but also improves the risk resistance of the system, ensuring the safe storage and recovery of key data.

[0018] 4. The present invention uses a mobile terminal with an integrated mobile password module to perform identity authentication and data interaction for key management operations. While ensuring the security of the entire operation process, it also further simplifies the management process, improves the convenience of operation, and enables administrators to efficiently perform backup and recovery tasks anytime and anywhere.

[0019] 5. The present invention implements a multi-level identity authentication process during the administrator registration process, combining SMS verification code and face recognition as multi-factor authentication means, which can strictly verify the identity of the administrator, effectively prevent unauthorized access, and ensure the authenticity and legality of each step of the operation. It fundamentally prevents security loopholes in the key management process and maintains the overall security and stability of the system.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become easy to understand through the following description. Of course, it is not necessary to achieve all of the advantages described above simultaneously for any product implementing the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings constituting a part of the present application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 It is the overall structural block diagram of the system of the present invention; Figure 2 A schematic diagram of the data format of the key backup file of the present invention; Figure 3 It is a schematic diagram of the step modules of the method of the present invention; Figure 4 A schematic diagram of the steps of the method for identity registration of an administrator of the present invention; Figure 5 A schematic diagram of the steps of performing a tenant key backup operation in the method of the present invention; Figure 6 This is a schematic diagram of the overall process of system-based tenant key backup in an embodiment of the present invention; Figure 7 Schematic diagram of the steps of performing tenant key recovery operation in the method of the present invention Figure 8 The figure is a schematic diagram of the overall process of system-based tenant key recovery in an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. In the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0023] In the embodiment, see Figures 1 to 8 .

[0024] like Figure 1 The embodiment of the present invention proposes a system for backing up and restoring tenant keys based on a mobile terminal, including a key management module, a key backup and recovery module, an identity authentication module and a mobile password module. The system is based on the tenant key backup file format and uses a mobile password module to allow a tenant key administrator to back up and restore tenant keys on a mobile terminal, wherein: The mobile password module is deployed in the mobile terminal and the cloud service provider's password service system to perform signature authentication and encryption and decryption in the mobile Internet, ensuring the security of key operations and the integrity and confidentiality of the communication process. At the same time, the Shamir threshold password technology is used to protect the encryption key, effectively controlling the administrator's operation authority; The key backup file format is used to perform SM4 symmetric encryption protection on tenants' key pairs one by one, and ensure file integrity through HMAC-SM3; The administrator sets a specified number for key management operations, including generating, deleting, backing up, and restoring keys.

[0025] By setting a dedicated key backup file format for tenant keys, cross-cloud service providers can be supported. By supporting the backup and recovery of keys between different cloud service providers, the dependence on a single cloud service provider can be significantly reduced, the flexibility of data migration and business continuity can be enhanced, and users can be ensured to switch freely in a multi-cloud environment, thereby improving service availability and independence.

[0026] Among them Figure 2 As shown, the data format of the key backup file includes: (1) Metadata area, which is used to record the ciphertext data after each administrator's public key encrypts the components of the master key (SM4 symmetric key), and generates backup components that match the number of administrators (generally set to 5) during the backup process, and records the hash value to verify the integrity of the file; The master key in the metadata area is split using Shamir threshold cryptography. Suppose the number of keys specified by the administrator is N, which is generally set to 5. X represents the administrator's number, X∈[1,N], and there exists: Version number: represents the current backup file version recorded; Data length of component X: represents the length of component ID and component ciphertext; Component X ID: represents the administrator ID recorded in the system; Ciphertext of component X: represents the ciphertext after the key is encrypted with the Xth administrator's public key; Ciphertext area HMAC-SM3: represents the value after HMAC-SM3 is performed on the ciphertext data of the entire key. The key is also the master key (backup-master-key); (2) The ciphertext data area is used to store the ciphertext data of the tenant key. In the ciphertext data area, there is i∈[1,n], which represents the i-th key data. There are n pieces of data in total, where: Ciphertext length: represents the ciphertext length of key No. i; Ciphertext key data: represents the i-th key data content of the ciphertext encrypted using the master key; During the key backup process, the master key will be split into the number of key components specified by the administrator using the Shamir threshold cryptography technology, and then the key components will be encrypted using the administrator's public key; When recovering the key, only y-2 administrators are needed to recover the master key by decrypting the key component through the mobile password module, and then decrypt the ciphertext data area of ​​the key data. y represents the number of designated administrators (for example, when there are 5 registered administrators, only 3 administrators are needed to complete the operation).

[0027] The key backup file format used here greatly improves the security level of backup data by implementing SM4 symmetric encryption on tenant key pairs one by one and using HMAC-SM3 to ensure file integrity, effectively protecting keys from unauthorized access and tampering, ensuring the confidentiality and integrity of data, and better meeting key backup and recovery management requirements.

[0028] In addition, by integrating Shamir threshold cryptography technology, redundant backup of key components is achieved, allowing the master key to be restored even if up to two key components are lost. This mechanism not only enhances the robustness of key management, but also improves the system's risk resistance and ensures the safe storage and recovery of critical data.

[0029] On the other hand, the present invention also discloses a method for backing up and restoring a tenant key based on a mobile terminal, which is executed based on any one of the above embodiments of the system for backing up and restoring a tenant key based on a mobile terminal, such as Figure 3 As shown, the specific steps include the following: S1. A specified number of administrators register their identities in mobile terminals. Figure 4 The specific steps include: S11. The user clicks to add an administrator in the mobile terminal and authenticates the identity through SMS verification code or face recognition. By implementing a multi-level identity authentication process, combined with SMS verification code and face recognition as multi-factor authentication means, the administrator's identity can be strictly verified, unauthorized access is effectively prevented, the authenticity and legality of each step of the operation is guaranteed, and security loopholes in the key management process are fundamentally prevented, maintaining the overall security and stability of the system; S12. The cloud service provider's password service system identifies its administrator identity, and then the mobile password module in the mobile terminal generates a key pair and sends its public key to the cloud service provider's password service system, and finally the cloud service provider's password service system saves its public key; S13. Repeat steps S11-S12 until the specified number of administrators have completed registration and addition; S2. Perform tenant key backup based on mobile terminal, refer to Figure 5 and Figure 6 The specific steps include: S21. The tenant administrator clicks Start Backup on the mobile terminal and authenticates his identity through the mobile password module signature; S22. The cloud service provider's cryptographic service system verifies the signature value and initiates the backup operation, specifically generating a master key (backup-master-key) and dividing it into a specified number (usually 5) of key components using the Shamir threshold algorithm, and then sending backup notifications to the corresponding administrators in turn; S23. The administrator receives the backup notification on the mobile terminal and performs signature authentication; After the S24 identity authentication module passes the authentication, the cloud service provider's cryptographic service system uses the administrator's public key to encrypt the key component to obtain the ciphertext, and saves the administrator ID and the ciphertext key component to the backup file; S25. Loop through steps S21-S24 until the specified number of administrators are authenticated and each key component is encrypted successfully; S26. After the components of the master key have been encrypted and protected, the cloud service provider's cryptographic service system will use the master key to encrypt the key information of the tenant to be protected and write it to the backup file, and finally calculate HMAC-SM3, and then append it to the backup file structure; S27. Generate a key backup file and download it back to the administrator's mobile terminal to complete the key backup; S3. Perform tenant key recovery based on the mobile terminal, refer to Figure 7 and Figure 8 The specific steps include: S31. The administrator clicks Start Recovery on the mobile terminal and uploads the key backup file to authenticate his identity through the mobile password module; S32. The cloud service provider's password service system verifies the HMAC-SM3 of the file, parses it to obtain the administrator ID and the corresponding number (usually 5) of ciphertext master key (backup-master-key) components, and then sends recovery notifications to the administrators in turn; S33. The administrator receives the recovery notification on the mobile terminal and performs signature authentication; S34. After the identity authentication module passes the authentication, the cloud service provider's cryptographic service system uses a collaborative decryption method to decrypt the key components of each ciphertext to obtain the key components; S35. Loop S32-S34 until at least z-2 administrators are authenticated and their respective ciphertext key components are successfully decrypted, where z is the number of registered administrators (when the number of registered administrators is 5, at least 3 administrators need to be authenticated and their respective ciphertext key components are successfully decrypted); S36. The cloud service provider's cryptographic service system uses the Shamir threshold algorithm to restore the master key (backup-master-key) through the key components; S37. Use the master key to decrypt the ciphertext key data of all tenants, and then restore it to the cryptographic service systems of different cloud service providers, and send a successful recovery notification to the mobile terminal.

[0030] In summary, this method uses a mobile terminal with an integrated mobile password module to perform identity authentication and data interaction for key management operations. While ensuring the security of the entire operation process, it also further simplifies the management process and improves the convenience of operation, allowing administrators to efficiently perform backup and recovery tasks anytime and anywhere.

[0031] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0032] On the other hand, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program for executing any one of the mobile terminal-based tenant key backup and recovery systems in the above embodiments, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0033] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any one of the methods for backing up and restoring tenant keys based on a mobile terminal in the above embodiments.

[0034] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above method.

[0035] The embodiment of the present application also provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. A memory, used for storing a computer program, which is used to execute any one of the mobile terminal-based tenant key backup and recovery systems in the above-mentioned embodiments during execution of the program; The processor is used to implement the above-mentioned method of tenant key backup and recovery based on a mobile terminal when executing the program stored in the memory.

[0036] The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.

[0037] The communication interface is used for communication between the above electronic device and other devices.

[0038] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0039] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0040] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0041] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

[0042] In addition, it should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.

[0043] In addition, the meaning of "and / or" appearing in the full text includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, in the embodiments of the present invention, "multiple" refers to more than two. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the protection scope required by the present invention.

Claims

1. A tenant key backup and recovery system based on a mobile terminal, comprising a key management module, a key backup and recovery module, an identity authentication module and a mobile password module, characterized in that: The system is based on the tenant key backup file format and uses a mobile password module to allow tenant key administrators to back up and restore tenant keys on mobile terminals, where: The mobile password module is used to perform signature authentication and encryption and decryption in the mobile Internet, ensuring the security of key operations and the integrity and confidentiality of the communication process, and at the same time using Shamir threshold cryptography technology to protect encryption keys, effectively controlling the administrator's operating authority; The key backup file format is used to perform SM4 symmetric encryption protection on the tenant's key pairs one by one, and ensure the file integrity through HMAC-SM3; The administrator sets a specified number for key management operations, including generating, deleting, backing up, and restoring keys.

2. A tenant key backup and recovery system based on a mobile terminal as claimed in claim 1, characterized in that: The data format of the key backup file includes: The metadata area is used to record the ciphertext data after each administrator's public key encrypts the master key component, and generates backup components that match the number of administrators during the backup process, while recording the hash value to verify the integrity of the file; The ciphertext data area is used to store the ciphertext data of the tenant key.

3. A tenant key backup and recovery system based on a mobile terminal as claimed in claim 2, characterized in that: The master key in the metadata area is split using Shamir threshold cryptography. Suppose there are N administrator-specified numbers, X represents the administrator's number, X∈[1,N], and there are: Version number: represents the current backup file version recorded; Data length of component X: represents the length of component ID and component ciphertext; Component X ID: represents the administrator ID recorded in the system; Ciphertext of component X: represents the ciphertext after the key is encrypted with the Xth administrator's public key; Ciphertext area HMAC-SM3: represents the value after HMAC-SM3 is performed on the ciphertext data of the entire key. The key is also the master key.

4. A tenant key backup and recovery system based on a mobile terminal as claimed in claim 2, characterized in that: In the ciphertext data area, there is i∈[1,n], which means the i-th key data, and contains n pieces of data in total, where: Ciphertext length: represents the ciphertext length of key No. i; Ciphertext key data: represents the i-th key data content of the ciphertext encrypted using the master key; During the key backup process, the master key will be split into the number of key components specified by the administrator using the Shamir threshold cryptography technology, and then the key components will be encrypted using the administrator's public key; When recovering the key, any y-2 administrators can recover the master key by decrypting the key component through the mobile password module, and then decrypt the ciphertext data area of ​​the key data. y represents the number of designated administrators.

5. A method for backing up and restoring tenant keys based on a mobile terminal, characterized in that: The system for backing up and restoring a tenant key based on a mobile terminal according to any one of claims 1 to 4 is executed, comprising the following specific operation steps: S1. A specified number of administrators register their identities in mobile terminals; S2. Perform tenant key backup operation based on mobile terminal; S3. Perform a tenant key recovery operation based on the mobile terminal.

6. A method for backing up and restoring tenant keys based on a mobile terminal as claimed in claim 5, characterized in that: The specific operation steps of step S1 include: S11. The user clicks on Add Administrator on the mobile terminal and authenticates the user through SMS verification code or face recognition; S12. The cloud service provider's password service system identifies its administrator identity, and then the mobile password module in the mobile terminal generates a key pair and sends its public key to the cloud service provider's password service system, and finally the cloud service provider's password service system saves its public key; S13. Repeat steps S11-S12 until the specified number of administrators have completed registration and addition.

7. A method for backing up and restoring tenant keys based on a mobile terminal as claimed in claim 5, characterized in that: The specific operation steps of the S2 step include: S21. The tenant administrator clicks Start Backup on the mobile terminal and authenticates his identity through the mobile password module signature; S22. The cloud service provider's cryptographic service system verifies the signature value and initializes the backup operation, specifically: generating a master key and splitting it into a specified number of key components using the Shamir threshold algorithm, and then sending backup notifications to the corresponding administrators in turn; S23. The administrator receives the backup notification on the mobile terminal and performs signature authentication; After the S24 identity authentication module passes the authentication, the cloud service provider's cryptographic service system uses the administrator's public key to encrypt the key component to obtain the ciphertext, and saves the administrator ID and the ciphertext key component to the backup file; S25. Loop through the steps S21-S24 until the specified number of administrators are authenticated and each key component is encrypted successfully; S26. After the components of the master key have been encrypted and protected, the cloud service provider's cryptographic service system will use the master key to encrypt the key information of the tenant to be protected and write it to the backup file, and finally calculate HMAC-SM3, and then append it to the backup file structure; S27. Generate a key backup file and download it back to the administrator's mobile terminal to complete the key backup.

8. A method for backing up and restoring tenant keys based on a mobile terminal as claimed in claim 5, characterized in that: The specific operation steps of the S3 step include: S31. The administrator clicks Start Recovery on the mobile terminal and uploads the key backup file to authenticate his identity through the mobile password module; S32. The cloud service provider's password service system verifies the HMAC-SM3 of the file, parses it to obtain the administrator ID and the master key component of the corresponding ciphertext, and then sends a recovery notification to the administrator in turn; S33. The administrator receives the recovery notification on the mobile terminal and performs signature authentication; S34. After the identity authentication module passes the authentication, the cloud service provider's cryptographic service system uses a collaborative decryption method to decrypt the key components of each ciphertext to obtain the key components; S35. Loop the S32-S34 operations until at least z-2 administrators are authenticated and their respective ciphertext key components are successfully decrypted, where z represents the number of registered administrators; S36. The cloud service provider's cryptographic service system uses the Shamir threshold algorithm to restore the master key through the key components; S37. Use the master key to decrypt the ciphertext key data of all tenants, and then restore it to the cryptographic service systems of different cloud service providers, and send a successful recovery notification to the mobile terminal.

9. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 5 to 8.

10. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 5 to 8.

Citation Information

Patent Citations

  • Usbkey management plan based on sharing technology

    CN103580855A

  • Multi-KMC key recovery method

    CN107171796A

  • Key management and protection method for encrypted hard disk

    CN113938278A

  • Key protection mechanism

    CN117579267A

Cited By

  • Key management system based on version management

    CN120200749A