File encryption and decryption method and device based on cloud desktop and medium

By using SM4 and SM2 algorithms for file encryption and decryption between the cloud desktop and the physical machine, the confidentiality problem when the cloud desktop files are copied to the physical machine is solved, and efficient security is achieved during the file transfer process.

CN118627095AActive Publication Date: 2024-09-10GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410834723.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-10
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

When files are copied from the cloud desktop to the physical machine, the confidentiality of the files is poor and there is a risk of leaking confidential information.

Method used

Adopt cloud desktop-based file encryption and decryption methods, use SM4 encryption algorithm and SM2 algorithm, detect copy operations through the target coroutine, generate encrypted SM4 symmetric keys, and use SM2 public keys and private keys for encryption and decryption, combined with OpenSSL encryption method encrypts and decrypts target files to ensure the confidentiality of files during transmission.

Benefits of technology

Improved file confidentiality when copying files from the cloud desktop to the physical machine, ensuring the security of files during transmission and preventing the leakage of confidential information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627095A
    Figure CN118627095A
Patent Text Reader

Abstract

The invention discloses a file encryption and decryption method and device based on a cloud desktop and a medium, and belongs to the field of file encryption and decryption, the file encryption method based on the cloud desktop is applied to the cloud desktop, the cloud desktop is in communication connection with an entity machine, and the entity machine is provided with a client. The method comprises the following steps: in response to an operation of copying a target file to an entity machine on a cloud desktop by a target user, obtaining the target file through a target coroutine, and encrypting the target file to obtain an encrypted target file; sending the encrypted target file to the client to enable the client to perform decryption approval on the encrypted target file according to the decryption application information, and if the decryption approval of the encrypted target file is passed, decrypting the encrypted target file to obtain a target file; the decryption application information is obtained according to a decryption request for the target file initiated by the target user at the client, so that the file confidentiality when the file is copied from the cloud desktop to the physical machine is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of file encryption and decryption, and in particular to a method, device and medium for file encryption and decryption based on a cloud desktop. Background Art

[0002] At present, most of our software development and work documents, such as demand analysis and research reports, industry analysis, software programs and software source code, are developed on cloud desktops. When you need to copy files from cloud desktops to physical machines, if you do not encrypt the files, the relevant confidential information may be leaked, and the confidentiality of the files is poor. Summary of the invention

[0003] The present application provides a method, device and medium for encrypting and decrypting files based on a cloud desktop, so as to improve the confidentiality of files when copying files from a cloud desktop to a physical machine.

[0004] The present application provides a file encryption method based on a cloud desktop, which is applied to a cloud desktop, wherein the cloud desktop is communicatively connected to a physical machine, and a client is installed on the physical machine. The method includes:

[0005] In response to the target user's operation of copying the target file to the physical machine on the cloud desktop, the target file is obtained through the target coroutine, and the target file is encrypted to obtain an encrypted target file;

[0006] The encrypted target file is sent to the client so that the client can decrypt and approve the encrypted target file according to the decryption application information. If the decryption approval of the encrypted target file is passed, the encrypted target file is decrypted to obtain the target file; the decryption application information is obtained according to the decryption request for the target file initiated by the target user on the client.

[0007] Furthermore, before obtaining the target file, the method further includes:

[0008] The target user's operation of copying the target file to the physical machine on the cloud desktop is detected through the target coroutine to determine whether the target file is copied successfully;

[0009] If the target file copying fails, the target coroutine is terminated.

[0010] Furthermore, the target file is encrypted to obtain the encrypted target file, specifically:

[0011] Calculate the target file using the SM4 encryption algorithm to generate an SM4 symmetric key; the SM4 symmetric key includes: an SM4 key and an initialization vector;

[0012] The SM4 symmetric key is encrypted using the SM2 encryption algorithm to generate the SM2 public key of the cloud desktop and the SM2 private key of the physical machine, respectively, to obtain the encrypted SM4 symmetric key;

[0013] The target file is loaded into the memory in a manner of reading a file stream, and the target file is encrypted according to the encrypted SM4 symmetric key and the encryption method of OpenSSL to obtain the encrypted target file.

[0014] As a preferred solution, this application uses a domestic encryption algorithm to encrypt files transmitted from the cloud desktop, thereby improving the confidentiality of files when copying files from the cloud desktop to the physical machine.

[0015] Accordingly, the present application also provides a file decryption method based on a cloud desktop, which is applied to a client, wherein the client is installed on a physical machine, and the physical machine is communicatively connected to the cloud desktop. The method includes:

[0016] After the client receives the encrypted target file sent by the cloud desktop, the encrypted target file is obtained by the cloud desktop in response to the target user's operation of copying the target file to the physical machine on the cloud desktop, through the target coroutine, and after encrypting the target file;

[0017] In response to a decryption request for the target file initiated by a target user at a client, obtaining decryption application information according to the decryption request;

[0018] The encrypted target file is decrypted and approved according to the decryption application information. If the decryption approval of the encrypted target file is passed, the encrypted target file is decrypted to obtain the target file.

[0019] Furthermore, the decryption approval of the encrypted target file is specifically as follows:

[0020] Determine the approval personnel information corresponding to the target user based on the domain control account organizational structure information;

[0021] If there is no approver in the approver information, the decryption approval of the encrypted target file is passed;

[0022] If there is one or more approving personnel in the approving personnel information, the decryption application information is sent to the terminal of each of the approving personnel for approval;

[0023] If all the reviewers approve the decryption application information, the decryption approval of the encrypted target file is passed.

[0024] Furthermore, before decrypting the encrypted target file to obtain the target file, the process further includes:

[0025] Link to the public server of the cloud desktop to obtain the SM2 private key and SM4 symmetric key of the physical machine; the SM4 symmetric key includes: SM4 key and initialization vector.

[0026] Furthermore, the encrypted target file is decrypted to obtain the target file, specifically:

[0027] According to the SM2 private key of the physical machine, the SM4 key and the initialization vector are decrypted respectively to obtain the SM4 symmetric key;

[0028] The encrypted target file is decrypted using the SM4 symmetric key to obtain the target file.

[0029] As a preferred solution, the present application performs decryption approval on the files obtained from the cloud desktop, and decrypts the files accordingly after the decryption approval is passed, thereby improving the file confidentiality when obtaining files copied from the cloud desktop.

[0030] Accordingly, the present application also provides a file encryption device based on a cloud desktop, which is applied to a cloud desktop, wherein the cloud desktop is communicatively connected to a physical machine, and a client is installed on the physical machine, and the device comprises: an encryption module and a sending module;

[0031] The encryption module is used for obtaining the target file through the target coroutine in response to the target user's operation of copying the target file to the physical machine on the cloud desktop, encrypting the target file, and obtaining the encrypted target file;

[0032] The sending module is used to send the encrypted target file to the client, so that the client can decrypt and approve the encrypted target file according to the decryption application information. If the decryption approval of the encrypted target file is passed, the encrypted target file is decrypted to obtain the target file; the decryption application information is obtained according to the decryption request for the target file initiated by the target user on the client.

[0033] Accordingly, the present application also provides a file decryption device based on a cloud desktop, which is applied to a client, the client is installed on a physical machine, the physical machine is communicatively connected with the cloud desktop, and the device includes: an approval module and a decryption module;

[0034] The approval module is used for, after the client receives the encrypted target file sent by the cloud desktop, the encrypted target file is obtained by the cloud desktop in response to the target user's operation of copying the target file to the physical machine on the cloud desktop, through the target coroutine to obtain the target file, and encrypting the target file;

[0035] In response to a decryption request for the target file initiated by the target user at the client, decryption application information is obtained according to the decryption request; and decryption and approval of the encrypted target file is performed according to the decryption application information;

[0036] The decryption module is used to decrypt the encrypted target file to obtain the target file if the decryption approval of the encrypted target file is passed.

[0037] Accordingly, the present application also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a cloud desktop-based file encryption method as described in the content of the present application, or a cloud desktop-based file decryption method as described in the content of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a flowchart of an embodiment of a cloud desktop-based file encryption method provided by the present application;

[0039] Figure 2 This is a flowchart of an embodiment of a cloud desktop-based file decryption method provided by the present application;

[0040] Figure 3 It is a structural schematic diagram of an embodiment of a cloud desktop-based file encryption device provided by the present application;

[0041] Figure 4 It is a structural diagram of an embodiment of a cloud desktop-based file decryption device provided in the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] Guomi (SM, China Cryptography) is a cryptographic algorithm standard issued by the State Cryptography Administration of China, which aims to protect the country's information security. Among them, SM2 is an asymmetric encryption algorithm used for key negotiation, digital signature and data encryption. SM2 uses elliptic curve cryptography (ECC) as its basic mathematical principle. Its public key cryptography system is based on the difficulty of the elliptic curve discrete logarithm problem (ECDLP).

[0044] Embodiment 1

[0045] Please refer to Figure 1 , a file encryption method based on a cloud desktop provided in an embodiment of the present application, applied to a cloud desktop, the cloud desktop is in communication connection with a physical machine, a client is installed on the physical machine, and the method includes steps S101-S102:

[0046] Step S101: in response to the target user's operation of copying a target file to a physical machine on a cloud desktop, the target file is obtained through a target coroutine, and the target file is encrypted to obtain an encrypted target file;

[0047] Step S102: Send the encrypted target file to the client so that the client can decrypt and approve the encrypted target file according to the decryption application information. If the decryption approval of the encrypted target file is passed, the encrypted target file is decrypted to obtain the target file; the decryption application information is obtained according to the decryption request for the target file initiated by the target user on the client.

[0048] Furthermore, before obtaining the target file, the method further includes:

[0049] The target user's operation of copying the target file to the physical machine on the cloud desktop is detected through the target coroutine to determine whether the target file is copied successfully;

[0050] If the target file copying fails, the target coroutine is terminated.

[0051] In this embodiment, after the target user copies the target file to the physical machine on the cloud desktop, a go coroutine is opened to detect whether the target file is copied successfully. If the target file is copied successfully, the target file is obtained and encrypted to obtain the encrypted target file.

[0052] If it is detected that the target file fails to be copied, the go routine is terminated and the acquisition and encryption operations of the target file will not be performed;

[0053] If the target file fails to be obtained, the go routine is terminated and the encryption operation of the target file will not be performed.

[0054] Furthermore, the target file is encrypted to obtain the encrypted target file, specifically:

[0055] Calculate the target file using the SM4 encryption algorithm to generate an SM4 symmetric key; the SM4 symmetric key includes: an SM4 key and an initialization vector;

[0056] The SM4 symmetric key is encrypted using the SM2 encryption algorithm to generate the SM2 public key of the cloud desktop and the SM2 private key of the physical machine, respectively, to obtain the encrypted SM4 symmetric key;

[0057] The target file is loaded into the memory in a manner of reading a file stream, and the target file is encrypted according to the encrypted SM4 symmetric key and the encryption method of OpenSSL to obtain the encrypted target file.

[0058] In this embodiment, when the SM4 encryption algorithm is used, the SM4 key (Key) and initialization vector (IV) are required to perform encryption and decryption operations.

[0059] An initialization vector (IV) is a random value of fixed length that is used with the key during encryption and decryption to enhance the security of the cipher. The length of the initialization vector (IV) is usually the same as the cipher block size, and for the SM4 algorithm, the length of the IV is 128 bits (16 bytes). Before each encryption of a new data block, the initialization vector is mixed with the previous ciphertext block to increase the complexity and security of the cipher.

[0060] When using the SM4 encryption algorithm, the key (Key) and initialization vector (IV) are necessary parameters. The specific operation mode will determine whether the initialization vector is required. For example, in CBC mode, the key and initialization vector are required, while in ECB (Electronic Codebook) mode, only the key is required.

[0061] In this embodiment, the SM2 algorithm is required to encrypt the SM4 key (Key) and initialization vector (IV). In the SM2 algorithm, the two communicating parties each generate a public key and a private key pair. The public key is used for encryption and signature verification, and the private key is used for decryption and signing. When encrypting, the other party's public key is used for encryption, and when decrypting, the private key is used for decryption. When signing, the private key is used for signing, and the public key of the other party is used for signature verification.

[0062] When the SM4 key is encrypted using the SM2 algorithm, a pair of SM2 public key and SM2 private key is generated. Usually, a point on the elliptic curve is used as the public key, and the private key is a random number. The process of generating a pair of public key and private key can be implemented using a cryptographic library, such as OpenSSL, Bouncy Cast le, or the crypto library of the Go language.

[0063] The SM4 key (Key) and initialization vector (IV) are encrypted using the SM2 public key, and the plaintext is encrypted into ciphertext using the SM2 encryption algorithm. The encryption process involves the operation of points on the elliptic curve.

[0064] Implementing the embodiments of the present application has the following effects:

[0065] This application uses a domestic encryption algorithm to encrypt files transmitted from the cloud desktop, thereby improving the confidentiality of files when copying files from the cloud desktop to the physical machine.

[0066] Embodiment 2

[0067] Please refer to Figure 2 , a file decryption method based on a cloud desktop provided in an embodiment of the present application, applied to a client, the client is installed on a physical machine, the physical machine is connected to the cloud desktop in communication, and the method includes steps S201-S202:

[0068] Step S201: After the client receives the encrypted target file sent by the cloud desktop, the encrypted target file is obtained by the cloud desktop in response to the target user's operation of copying the target file to the physical machine on the cloud desktop, through the target coroutine, and the target file is encrypted;

[0069] In response to a decryption request for the target file initiated by a target user at a client, obtaining decryption application information according to the decryption request;

[0070] Step S202: decryption approval is performed on the encrypted target file according to the decryption application information. If the decryption approval of the encrypted target file is passed, the encrypted target file is decrypted to obtain the target file.

[0071] Furthermore, the decryption approval of the encrypted target file is specifically as follows:

[0072] Determine the approval personnel information corresponding to the target user based on the domain control account organizational structure information;

[0073] If there is no approver in the approver information, the decryption approval of the encrypted target file is passed;

[0074] If there is one or more approving personnel in the approving personnel information, the decryption application information is sent to the terminal of each of the approving personnel for approval;

[0075] If all the reviewers approve the decryption application information, the decryption approval of the encrypted target file is passed.

[0076] In this embodiment, the company's domain control account organizational structure is read to determine the approval personnel information corresponding to the target user. Exemplarily, the company's domain control account organizational structure is from top to bottom: R&D director, development supervisor and ordinary employees, that is, the superior of the ordinary employee is the development supervisor, and the superior of the development supervisor is the R&D director.

[0077] If the target user is an ordinary employee, the approval personnel information corresponding to the target user is the R&D director and the development supervisor; both the R&D director and the development supervisor need to agree to the target user's decryption application information, and the decryption approval of the encrypted target file is passed.

[0078] According to convention, if there is more than one approver information, the approval is initiated in the order from bottom to top according to the domain control account organizational structure. When any approver disagrees with the application, there is no need for the superior approver to approve it, the approval process is terminated, and the decryption approval of the encrypted target file is directly determined to be failed.

[0079] If the target user is a development supervisor, the approval personnel information corresponding to the target user is the R&D director; the R&D director needs to agree to the target user's decryption application information, and the decryption approval of the encrypted target file is passed.

[0080] If the target user is the R&D director, there is no approver in the approver information corresponding to the target user, and the decryption approval of the encrypted target file is directly passed.

[0081] Furthermore, before decrypting the encrypted target file to obtain the target file, the process further includes:

[0082] Link to the public server of the cloud desktop to obtain the SM2 private key and SM4 symmetric key of the physical machine; the SM4 symmetric key includes: SM4 key and initialization vector.

[0083] Furthermore, the encrypted target file is decrypted to obtain the target file, specifically:

[0084] According to the SM2 private key of the physical machine, the SM4 key and the initialization vector are decrypted respectively to obtain the SM4 symmetric key;

[0085] The encrypted target file is decrypted using the SM4 symmetric key to obtain the target file.

[0086] In this embodiment, the client uses its SM2 private key to decrypt the received encrypted SM4 key, thereby restoring the original SM4 symmetric key. The restored SM4 symmetric key is used to decrypt the file content, thereby restoring the original file data, and the decrypted content is saved to the client's local disk.

[0087] In this embodiment, after obtaining the original target file, if the target user wants to send the target file out, it is necessary to initiate the approval of the outbound application, and determine the approval personnel information corresponding to the target user according to the domain control account organizational structure information;

[0088] If there is no approver in the approver information, the outbound approval of the target file is passed;

[0089] If there is one or more approving personnel in the approving personnel information, the outgoing application information is sent to the terminal of each of the approving personnel for approval;

[0090] If all the reviewers approve the decryption application information, the outbound approval of the target file is passed.

[0091] Implementing the embodiments of the present application has the following effects:

[0092] This application performs decryption approval on the files obtained from the cloud desktop, and decrypts the files accordingly after the decryption approval is passed, thereby improving the file confidentiality when obtaining files copied from the cloud desktop.

[0093] Embodiment 3

[0094] Please refer to Figure 3 , a file encryption device based on a cloud desktop provided in an embodiment of the present application, applied to a cloud desktop, the cloud desktop is in communication connection with a physical machine, a client is installed on the physical machine, the device comprises: an encryption module 301 and a sending module 302;

[0095] The encryption module is used for obtaining the target file through the target coroutine in response to the target user's operation of copying the target file to the physical machine on the cloud desktop, encrypting the target file, and obtaining the encrypted target file;

[0096] The sending module is used to send the encrypted target file to the client, so that the client can decrypt and approve the encrypted target file according to the decryption application information. If the decryption approval of the encrypted target file is passed, the encrypted target file is decrypted to obtain the target file; the decryption application information is obtained according to the decryption request for the target file initiated by the target user on the client.

[0097] The above-mentioned cloud desktop-based file encryption device can implement the cloud desktop-based file encryption method of the above-mentioned method embodiment. The optional items in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of this application can refer to the contents of the above-mentioned method embodiment, and will not be repeated in this embodiment.

[0098] Embodiment 4

[0099] Please refer to Figure 4 , a file decryption device based on a cloud desktop provided in an embodiment of the present application, applied to a client, the client is installed on a physical machine, the physical machine is communicatively connected with the cloud desktop, the device comprises: an approval module 401 and a decryption module 402;

[0100] The approval module is used for, after the client receives the encrypted target file sent by the cloud desktop, the encrypted target file is obtained by the cloud desktop in response to the target user's operation of copying the target file to the physical machine on the cloud desktop, through the target coroutine to obtain the target file, and encrypting the target file;

[0101] In response to a decryption request for the target file initiated by the target user at the client, decryption application information is obtained according to the decryption request; and decryption and approval of the encrypted target file is performed according to the decryption application information;

[0102] The decryption module is used to decrypt the encrypted target file to obtain the target file if the decryption approval of the encrypted target file is passed.

[0103] The above-mentioned cloud desktop-based file decryption device can implement the cloud desktop-based file decryption method of the above-mentioned method embodiment 2. The optional items in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of this application can refer to the contents of the above-mentioned method embodiment, and will not be repeated in this embodiment.

[0104] Embodiment 5

[0105] Accordingly, the present application also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a cloud desktop-based file encryption method or a cloud desktop-based file decryption method as described in any of the above embodiments.

[0106] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the terminal device.

[0107] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0108] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0109] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (SecureDi gita l, SD) card, a flash card (F l ash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0110] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0111] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A file encryption method based on cloud desktop, characterized in that: Applied to a cloud desktop, the cloud desktop is communicatively connected to a physical machine, a client is installed on the physical machine, and the method includes: In response to the target user's operation of copying the target file to the physical machine on the cloud desktop, the target file is obtained through the target coroutine, and the target file is encrypted to obtain an encrypted target file; The encrypted target file is sent to the client so that the client can decrypt and approve the encrypted target file according to the decryption application information. If the decryption approval of the encrypted target file is passed, the encrypted target file is decrypted to obtain the target file; the decryption application information is obtained according to the decryption request for the target file initiated by the target user on the client.

2. A cloud desktop-based file encryption method as claimed in claim 1, characterized in that: Before obtaining the target file, the method further includes: The target user's operation of copying the target file to the physical machine on the cloud desktop is detected through the target coroutine to determine whether the target file is copied successfully; If the target file copying fails, the target coroutine is terminated.

3. A cloud desktop-based file encryption method as claimed in claim 1, characterized in that: The target file is encrypted to obtain the encrypted target file, specifically: Calculate the target file using the SM4 encryption algorithm to generate an SM4 symmetric key; the SM4 symmetric key includes: an SM4 key and an initialization vector; The SM4 symmetric key is encrypted using the SM2 encryption algorithm to generate the SM2 public key of the cloud desktop and the SM2 private key of the physical machine, respectively, to obtain the encrypted SM4 symmetric key; The target file is loaded into the memory in a manner of reading a file stream, and the target file is encrypted according to the encrypted SM4 symmetric key and the encryption method of openssl to obtain the encrypted target file.

4. A file decryption method based on cloud desktop, characterized in that: Applied to a client, the client is installed on a physical machine, the physical machine is communicatively connected with a cloud desktop, and the method includes: After the client receives the encrypted target file sent by the cloud desktop, the encrypted target file is obtained by the cloud desktop in response to the target user's operation of copying the target file to the physical machine on the cloud desktop, through the target coroutine, and after encrypting the target file; In response to a decryption request for the target file initiated by a target user at a client, obtaining decryption application information according to the decryption request; The encrypted target file is decrypted and approved according to the decryption application information. If the decryption approval of the encrypted target file is passed, the encrypted target file is decrypted to obtain the target file.

5. A cloud desktop-based file decryption method as claimed in claim 4, characterized in that: The decryption approval of the encrypted target file is specifically as follows: Determine the approval personnel information corresponding to the target user based on the domain control account organizational structure information; If there is no approver in the approver information, the decryption approval of the encrypted target file is passed; If there is one or more approving personnel in the approving personnel information, the decryption application information is sent to the terminal of each of the approving personnel for approval; If all the reviewers approve the decryption application information, the decryption approval of the encrypted target file is passed.

6. A cloud desktop-based file decryption method as claimed in claim 4, characterized in that: Before decrypting the encrypted target file to obtain the target file, the method further includes: Link to the public server of the cloud desktop to obtain the SM2 private key and SM4 symmetric key of the physical machine; the SM4 symmetric key includes: SM4 key and initialization vector.

7. A cloud desktop-based file decryption method as claimed in claim 6, characterized in that: The encrypted target file is decrypted to obtain the target file, specifically: According to the SM2 private key of the physical machine, the SM4 key and the initialization vector are decrypted respectively to obtain the SM4 symmetric key; The encrypted target file is decrypted using the SM4 symmetric key to obtain the target file.

8. A file encryption device based on cloud desktop, characterized in that: Applied to a cloud desktop, the cloud desktop is connected to a physical machine for communication, a client is installed on the physical machine, and the device includes: an encryption module and a sending module; The encryption module is used for obtaining the target file through the target coroutine in response to the target user's operation of copying the target file to the physical machine on the cloud desktop, encrypting the target file, and obtaining the encrypted target file; The sending module is used to send the encrypted target file to the client, so that the client can decrypt and approve the encrypted target file according to the decryption application information. If the decryption approval of the encrypted target file is passed, the encrypted target file is decrypted to obtain the target file; the decryption application information is obtained according to the decryption request for the target file initiated by the target user on the client.

9. A file decryption device based on cloud desktop, characterized in that: Applied to a client, the client is installed on a physical machine, the physical machine is connected to a cloud desktop through communication, and the device includes: an approval module and a decryption module; The approval module is used for, after the client receives the encrypted target file sent by the cloud desktop, the encrypted target file is obtained by the cloud desktop in response to the target user's operation of copying the target file to the physical machine on the cloud desktop, through the target coroutine to obtain the target file, and encrypting the target file; In response to a decryption request for the target file initiated by the target user at the client, decryption application information is obtained according to the decryption request; and decryption and approval of the encrypted target file is performed according to the decryption application information; The decryption module is used to decrypt the encrypted target file to obtain the target file if the decryption approval of the encrypted target file is passed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a cloud desktop-based file encryption method as described in any one of claims 1 to 3, or a cloud desktop-based file decryption method as described in any one of claims 4 to 7.

Citation Information

Patent Citations

  • Secure file sharing system

    CN103561034A

  • Download-free approval process processing method and system

    CN115412544A

  • System, method and device for checking authenticity of data

    CN115765993A

  • File transmission method, system and device, storage medium and electronic equipment

    CN116208428A

  • File management method for preventing secret leakage

    CN116305287A