File burning method and device and file migration method and device
By obtaining user identity information to generate a key for file encryption and decryption, the encrypted burning and decryption process is automatically completed, solving the problems of cumbersome file encryption process and password management, and achieving efficient and safe file migration.
Patent Information
- Application Number
- CN202410813421.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, the file encryption process is cumbersome and independent of the burning process. Users need to remember the password in order to decompress, which poses problems of information security risks and cumbersome operations.
By obtaining the user's identity information, the identity information is used to generate a key to encrypt the file and automatically burn it to a disc. When decrypting, the same method is used to generate the key to decrypt the file, avoiding the user's manual password input.
It realizes one-click encryption and burning, simplifies the operation process, avoids the risk of password leakage, and is suitable for high confidentiality scenarios.
Smart Images

Figure CN118629439A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of file burning of a media player, and in particular to a file burning method, device and computing equipment. Background Art
[0002] With the steady implementation of various industries in my country, the information security of digital migration has become increasingly important. In terms of encryption algorithms, the National Cryptography Bureau has successively launched a variety of domestic encryption algorithms to meet the needs of information encryption in various application fields of e-government, e-commerce and national economy. In terms of data migration, my country's key scientific research, military and government units all use CD burning as the only solution for data migration.
[0003] However, the current mainstream operating systems, such as Windows and MacOS, including some known domestic operating systems, either use common encryption algorithms such as DES, RSA, DSA, etc. to encrypt and decrypt files, or only provide independent burning methods to solve the burning problem in terms of CD burning. Taking Windows as an example, users can compress and decompress files through applications such as WinRAR, but the steps are cumbersome. The encryption and compression process is as follows: right-click the file to be compressed, right-click and select "Add to compressed file...", such as Figure 1 (a) as shown; click the "Advanced" tab on the top of the pop-up dialog box, as shown Figure 1 (b) As shown; After entering the "Advanced" interface, click the "Set Password" button, as shown Figure 1 (c) as shown; enter the password in the password box, such as Figure 1 (d) As shown in the figure, please note that the two inputs must be the same. Once the password is set, it must be remembered firmly. If the password is forgotten, the compressed file cannot be opened. After the compression is completed, burn the compressed file to a disc using a burning program. When decrypting a file with a password, you will be prompted to enter the password. Figure 1 As shown in (e), if the password is correct, the decompression will proceed normally, otherwise it will prompt failure.
[0004] It can be seen that the above method has the following problems: 1. The file encryption process is cumbersome, and file encryption and burning are two completely independent processes. Each step from encryption to burning requires manual intervention; 2. After the file is encrypted, the user needs to remember the password, otherwise the file will not be able to be opened. Summary of the invention
[0005] To this end, the present invention provides a file burning method, apparatus and computing device, in an effort to solve or at least alleviate at least one of the above problems.
[0006] According to one aspect of the present invention, a file burning method is provided, comprising: obtaining user identity information in response to a burning request; obtaining a key based on the identity information; encrypting the file corresponding to the burning request using the key to obtain an encrypted file; and burning the encrypted file to a CD.
[0007] Optionally, in the file burning method according to the present invention, obtaining the user's identity information includes: obtaining the user's account information or ID information.
[0008] Optionally, in the file burning method according to the present invention, the obtaining of the key according to the identity information includes: obtaining an information digest of the identity information, and using the information digest as the key.
[0009] Optionally, in the file burning method according to the present invention, the obtaining of the information summary of the identity information includes: using an SM3 algorithm to obtain the information summary according to the identity information.
[0010] Optionally, encrypting the file corresponding to the burning request includes: encrypting the file corresponding to the burning request using an SM4 algorithm.
[0011] According to another aspect of the present invention, another file migration method is provided, including: mounting files in a CD into an operating system; obtaining user identity information; obtaining a key based on the identity information; and using the key to decrypt the file to a directory specified by the system.
[0012] According to another aspect of the present invention, a file burning device is also provided, including: a first identity information acquisition unit, suitable for obtaining the identity information of a user in response to a burning request; a first key generation unit, suitable for obtaining a key based on the identity information; an encryption unit, suitable for using the key to encrypt the file corresponding to the burning request to obtain an encrypted file; and a burning unit, suitable for burning the encrypted file to an optical disc.
[0013] According to another aspect of the present invention, a file migration device is also provided, including: a mounting unit, suitable for mounting files in a CD into an operating system; a second identity information acquisition unit, suitable for obtaining user identity information; a second key generation unit, suitable for obtaining a key based on the identity information; and a decryption unit, suitable for using the key to decrypt the file to a directory specified by the system.
[0014] According to another aspect of the present invention, a computing device is provided, comprising: at least one processor and a memory storing program instructions; when the program instructions are read and executed by the processor, the computing device executes the above file burning method or file migration method.
[0015] According to another aspect of the present invention, a readable storage medium storing program instructions is provided. When the program instructions are read and executed by a computing device, the computing device executes the above file burning method or file migration method.
[0016] According to yet another aspect of the present invention, there is further provided a computer program product, comprising a computer program / instruction, wherein the computer program / instruction implements the above file burning method or file migration method when executed by a processor.
[0017] The present invention uses the account information (such as Union ID or system login account) of the user who logs in to the operating system as the identity information, uses the identity information to generate a key to symmetrically encrypt the file, and after the encryption is completed, the data is automatically saved to the optical drive buffer area, and the system monitors the data migration to the optical drive buffer area, automatically starts the optical disc burning function, and automatically ejects the disc after the burning is completed. The decryption key is generated in the same way as the encryption process.
[0018] According to the file burning method, device and file migration method and device of the present invention, at least one of the following beneficial effects can be achieved: one-click "encryption + burning" and one-click export are realized, and the entire process does not require excessive user participation or user recording of passwords. Compared with the prior art, the present invention is not only easy to operate, but also avoids the risk of password leakage, and is suitable for high-confidentiality scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] To achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The above and other purposes, features and advantages of the present disclosure will become more apparent by reading the following detailed description in conjunction with the accompanying drawings. Throughout the present disclosure, the same reference numerals generally refer to the same parts or elements.
[0020] Figure 1 A schematic diagram showing an encryption operation of a file according to the background technology part of the present invention is shown;
[0021] Figure 2 A schematic diagram of a computing device 200 according to an embodiment of the present invention is shown;
[0022] Figure 3 A flowchart of a file burning method 300 according to an embodiment of the present invention is shown;
[0023] Figure 4 Schematic diagrams of the control center interface of the UOS system according to an embodiment of the present invention are shown, wherein (a) is a schematic diagram of the account interface, and (b) is a schematic diagram of the ID interface;
[0024] Figure 5 A schematic diagram of the encryption / decryption process according to an embodiment of the present invention is shown;
[0025] Figure 6 A schematic diagram of a process of burning an encrypted file according to an embodiment of the present invention is shown;
[0026] Figure 7 A schematic diagram showing an operation interface for encrypting and burning files according to an embodiment of the present invention;
[0027] Figure 8 A schematic diagram showing the principle of encrypting and burning files by an operating system according to an embodiment of the present invention;
[0028] Fig. 9 A schematic diagram of a file migration method 900 according to an embodiment of the present invention is shown;
[0029] Fig.10 A schematic structural diagram of a file burning device 1000 according to an embodiment of the present invention is shown;
[0030] Fig.11 A schematic structural diagram of a file migration device 1100 according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0031] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0032] In view of the problem that the existing file encryption and burning technology requires too much manual intervention and needs to save passwords, the present invention provides a file burning method that can complete the file encryption and burning process with one click and does not require a burning password.
[0033] Figure 2 FIG. 2 is a schematic diagram of a computing device 200 according to an embodiment of the present invention. It should be noted that: Figure 2 The computing device 200 shown is only an example. In practice, the computing device used to implement the file burning method or file migration method of the present invention can be any type of device, and its hardware configuration can be different from the above. Figure 2 The computing device 200 shown is the same as Figure 2The computing device 200 shown is different. In practice, the computing device used to implement the file burning method or file migration method of the present invention can be Figure 2 The hardware components of the computing device 200 shown are increased or deleted, and the present invention does not limit the specific hardware configuration of the computing device.
[0034] like Figure 2 As shown, computing device 200 includes memory 210 , one or more processors 220 , and optical drive 230 .
[0035] Depending on the desired configuration, processor 220 may be any type of processor including, but not limited to, a microprocessor (μP), a microcontroller (μC), a digital signal processor (DSP), or any combination thereof.
[0036] Depending on the desired configuration, the memory 210 may be any type of memory including, but not limited to, volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof.
[0037] Depending on the desired configuration, the optical drive 230 may be a built-in optical drive of the computing device 200 , or may be an interface for connecting an external optical drive, so that the external optical drive is connected to the computing device 200 through the interface.
[0038] The computing device 200 can be implemented as a server, such as a file server, a database server, an application server, and a WEB server, etc., and can also be implemented as a personal computer including a desktop computer and a notebook computer configuration. Of course, the computing device 100 can also be implemented as a part of a small-size portable (or mobile) electronic device. In an embodiment of the present invention, the computing device 200 is configured to execute the file burning method or the file migration method according to the present invention.
[0039] A file burning method 300 according to an embodiment of the present invention includes: obtaining user identity information in response to a burning request; obtaining a key based on the identity information; encrypting the file corresponding to the burning request using the key to obtain an encrypted file; and burning the encrypted file to an optical disc.
[0040] Figure 3 FIG. 3 is a flowchart of a file burning method 300 according to an embodiment of the present invention. The method 300 is executed in a computing device (such as the aforementioned computing device 200). Figure 3 As shown, method 300 begins at 310 .
[0041] In 310, in response to the burning request, the user's identity information is obtained.
[0042] After the user opens and logs in to the operating system, only the logged-in account or ID can prove the user's identity in the operating system. In the UOS system, not only is the user provided with account information similar to Windows, such as Figure 4 As shown in (a), the ID information of the integrated design is also provided, such as Figure 4 As shown in (b), each user's account and ID are unique, and the account and ID are bound to each other. Therefore, the user identity information here can be the user's account or the user's ID.
[0043] In one implementation, in order to solve the problem of being unable to obtain an ID due to abnormal situations such as the Union ID not being registered or not being logged in, the ID of the logged-in user can be obtained first. If the ID acquisition fails, the account of the logged-in user is obtained. The specific method is as follows:
[0044] 1) Obtain the current Union ID information through the UOS control center interface and save the current Union ID information as identity information. If the acquisition fails, execute step 2);
[0045] 2) Obtain user account information through the UOS control center interface and save the current account information as identity feature information.
[0046] In another implementation, in order to quickly obtain user identity information, the current user's account information can be directly obtained through the UOS control center interface, and the account information can be saved as identity feature information.
[0047] Next, in step 320, a key is obtained according to the identity information.
[0048] The key information is determined based on the acquired identity information, and then the key information is used to generate the key.
[0049] In the first implementation, the user's ID is used as key information. If the identity information obtained in step 310 is the user's ID, then in this step, the key can be directly generated using the ID of the currently logged-in user. If the identity information obtained in step 310 is the user's account, then in this step, it is necessary to determine the ID bound to the account based on the obtained account, and then use the ID to generate the key.
[0050] In the second implementation, the user's account is used as key information. If the identity information obtained in step 310 is the user's account, then in this step, the key can be directly generated using the account of the currently logged-in user. If the identity information obtained in step 310 is the user's ID, then in this step, it is necessary to determine the account bound to the ID based on the obtained ID, and then use the account to generate the key. Since some users may not have registered IDs, this implementation is more versatile.
[0051] In the third implementation, the user's account and ID (i.e., "account+ID" or "ID+account") are used as key information. If the identity information obtained in step 310 is the user's account, then in this step, it is necessary to determine the ID bound to the account based on the obtained account, and then generate a key using the account and ID of the currently logged-in user. If the identity information obtained in step 310 is the user's ID, then in this step, it is necessary to determine the account bound to the ID based on the obtained ID, and then generate a key using the account and ID of the currently logged-in user. Of course, the account and ID of the currently logged-in user can also be obtained through the interface in step 310.
[0052] There are many ways to generate a key. The method selected in the embodiment of the present application is as follows: generate an information digest according to key information, and use the information digest as the key.
[0053] The algorithms for generating information digests include MD5, SHA-1, etc. In order to meet the requirements of the localized information security policy, the embodiment of the present application uses the SM3 algorithm, and the output length of the SM3 algorithm is 256 bits. The SM3 algorithm has been integrated on the operating system, and the key steps of the SM3 algorithm are: SM3_Hash (key information, key information length, summary information).
[0054] Next, in step 330, the file corresponding to the burning request is encrypted using the key to obtain an encrypted file.
[0055] Before encrypting and burning files, the user needs to select the files to be burned, and then choose to encrypt and burn these files. The selected files are the files corresponding to the burning request.
[0056] This step will use the key obtained in the previous step to encrypt the file to be burned selected by the user.
[0057] There are many algorithms for encrypting data. In order to meet the requirements of domestic information security policies, the embodiment of this application uses the SM4 block cipher algorithm, which is a block symmetric cipher algorithm independently designed by my country, used to implement data encryption / decryption operations to ensure the confidentiality of data and information. The SM4 block cipher algorithm implements data encryption / decryption through the context structure implemented by the following code:
[0058] typedef struct{
[0059] int32 mode; / / Encryption or decryption mode, generally mode=0 is decryption, mode=1 is encryption
[0060] unisgned long subkeys
[32] ; / / 32*8=256 bits, equivalent to SM3 output
[0061] }sm4_context;
[0062] The encryption and decryption functions are as follows:
[0063] void sm4_crypt_code(sm4_context*ctx, const char*inputfile, const char*outputfile);
[0064] void sm4_crypt_code(sm4_context*ctx,int leninput,unsigned char*input,int lenoutput,unsigned char*output);
[0065] Figure 5 A schematic diagram of the encryption / decryption process is shown. Figure 5 As shown, taking the UOS operating system as an example, when a file needs to be encrypted and burned, the control center of the operating system first obtains the ID of the user who is currently logged in to the operating system, that is, UnionID. If the ID acquisition fails, it continues to obtain the user's account information; after the user identity information is acquired, it is input into the SM3 algorithm, and the SM3 algorithm calls SM3_Hash to obtain the 256-bit summary information of the identity information, and inputs the summary information as the key into the SM4 algorithm; the SM4 algorithm calls the sm4_context function to save the 256-bit summary information; if sm4_contextmode=1, it indicates the encryption process, and sm4_crypt_code needs to be called to encrypt the file; if sm4_contextmode=0, it indicates the decryption process, and sm4_crypt_code needs to be called to decrypt the file.
[0066] Next, in step 340, the encrypted file is burned to an optical disc.
[0067] The burning function requires the operating system to support ISO9660 and UDF file system burning. Taking the UOS operating system as an example, the current UOS1040 version supports the additional burning operation of the above two file systems.
[0068] In the system, each optical drive has its own data buffer. For example, the buffer of optical drive sr0 is ~ / .cache / deepin / discburn / _dev_sr0, and the buffer of optical drive srN is ~ / .cache / deepin / discburn / _dev_srN, where N=0,1,2... When the file data to be burned is put into the specific optical drive buffer, the file changes can be monitored through inotify. Once the data buffer is copied and the CLOSE_WRITE signal is triggered, the burning process can be automatically executed.
[0069] Figure 6 A schematic diagram of the burning process is shown in FIG. Figure 6 As shown, the system monitor of the operating system continuously monitors the optical drive buffer. When an encrypted file is sent to the optical drive buffer, the optical drive buffer creates a folder; after the folder is created, the system monitor sends the IN_CREATE instruction to the optical disc burning program; next, the optical drive buffer starts to copy the encrypted file, and the system monitor monitors the copying process; when it is detected that the encrypted file copy is completed, the system monitor triggers the IN_CLOSE_WRITE signal, and when the optical disc burning program receives the signal, it starts to burn the data in the optical drive buffer to the optical disc, and ejects the optical disc when the burning is completed.
[0070] When the method 300 is embedded in the operating system and the file is encrypted and burned, the user's operation is very simple, such as Figure 7 As shown in the figure, the user only needs to select the file to be burned, right-click the mouse, and select "Encrypt and automatically burn" in the pop-up function menu. Next, the operating system will encrypt the selected file and automatically burn it to the disc, realizing one-click burning. For the above burning process, the operating system process is as follows Figure 8 As shown, when the file manager or desktop recognizes that one or more files or folders are selected, and recognizes a right-click operation in the area where the icons of the one or more files or folders are located, the file manager or desktop will pop up a menu; when the file manager or desktop recognizes that the "Encrypt and automatically burn" item in the menu is selected, it starts to encrypt the selected files or folders. After the encryption is completed, the optical drive automatically burns the encrypted files, and when the burning is completed, the optical disc is automatically ejected.
[0071] The embodiment of the present invention also provides a file migration method 900 that cooperates with the method 300. The method 900 includes: mounting the file in the optical disk to the operating system; obtaining the user identity information; obtaining the key according to the identity information; and decrypting the file to a directory specified by the system using the key.
[0072] Fig. 9FIG. 9 is a flowchart of a file migration method 900 according to an embodiment of the present invention. Fig. 9 As shown, method 900 begins at step 910 .
[0073] In step 910, the files in the optical disk are mounted into the operating system.
[0074] In one implementation, when the operating system recognizes that the optical disc is inserted into the computer, the files stored in the optical disc are mounted into the operating system.
[0075] In another implementation, when the operating system recognizes that the disc directory has been entered and there are files in the disc directory that are selected for export, the files stored in the disc are mounted into the operating system. For example, when a user inserts a disc into a computer, he or she can select one or more files in the disc directory, right-click the mouse, and select "Export File" in the pop-up function menu. The system will then start to decrypt the selected files and export them to a local folder.
[0076] Next, in step 920, user identity information is obtained.
[0077] This step may adopt the same method as method 300 to obtain the user identity information.
[0078] Next, in step 930, a key is obtained according to the identity information.
[0079] This step obtains the key in the same manner as method 300 to ensure that the key obtained is the same as the key used in the encryption process.
[0080] Next, in step 940, the key is used to decrypt the file to a directory specified by the system.
[0081] The decryption algorithm used in this step should be the same as the encryption algorithm used in method 300. For example, if the encryption process uses the SM4 algorithm, the decryption process should also use the SM4 algorithm.
[0082] The decryption process can be referred to Figure 5 The files mounted in step 910 are encrypted files from the optical disc. This step decrypts these encrypted files into a buffer. The files obtained by decryption are called decrypted files. The mounted directory is mapped to a local folder for storing decrypted files. Users can enter the directory to view the decrypted files. The folder is named after the optical drive to distinguish data from different optical drives.
[0083] The embodiment of the present application adopts a one-click encryption and burning solution, which can solve the information security risks and cumbersome operation problems in the process of file migration in highly confidential places. When encrypting and burning, the user only needs to select the file, then right-click the mouse and select encrypt and burn, and one-click encryption and burning can be achieved without further manual intervention; when decrypting, the user also only needs to select the exported file on the CD, and the system can automatically monitor the cache of the file to be burned and fall to the disk. The burning process is automated and no more manual intervention is required. In addition, the embodiment of the present application uses the system union ID or user account information to automatically generate an encrypted summary during the encryption and decryption process. The user does not need to record any passwords. This not only solves the problem of passwords being easily forgotten, but also avoids the risk of password leakage.
[0084] The embodiment of the present invention further provides a file burning device 1000, which can execute the steps of the file burning method 300 described above. Fig.10 The above-mentioned file burning device 1000 is described.
[0085] like Fig.10 As shown, the file burning device 1000 includes a first identity information obtaining unit 1010 , a first key generating unit 1020 , an encryption unit 1030 and a burning unit 1040 .
[0086] The first identity information obtaining unit 1010 is adapted to obtain the identity information of the user in response to a burning request.
[0087] The first key generating unit 1020 is adapted to obtain a key according to the identity information.
[0088] The encryption unit 1030 is adapted to encrypt the file corresponding to the burning request using the key to obtain an encrypted file.
[0089] The burning unit 1040 is adapted to burn the encrypted file to an optical disc.
[0090] As a preferred embodiment of the present application, the obtaining of the user's identity information includes:
[0091] Obtain the user's account information or ID information. As a preferred embodiment of this application,
[0092] As a preferred embodiment of the present application, the step of obtaining a key according to the identity information includes:
[0093] An information digest of the identity information is obtained, and the information digest is used as the key.
[0094] As a preferred embodiment of the present application, the information summary of obtaining the identity information includes:
[0095] An SM3 algorithm is used to obtain an information summary based on the identity information.
[0096] As a preferred embodiment of the present application, encrypting the file corresponding to the burning request includes:
[0097] The file corresponding to the burning request is encrypted using the SM4 algorithm.
[0098] The device 1000 has the same principles and technical effects as the method 300, which will not be described in detail here.
[0099] The embodiment of the present invention further provides a file migration device 1100, which can execute the steps of the file migration method 900 described above. Fig.11 The file migration apparatus 1100 is described below.
[0100] like Fig.11 As shown, the file migration device 1100 includes a mounting unit 1110 , a second identity information obtaining unit 1120 , a second key generating unit 1130 and a decryption unit 1140 .
[0101] The mounting unit 1110 is adapted to mount files in the optical disk into the operating system.
[0102] The second identity information acquiring unit 1120 is adapted to acquire the identity information of the user.
[0103] The second key generating unit 1130 is adapted to obtain a key according to the identity information.
[0104] The decryption unit 1140 is adapted to use the key to decrypt the file to a directory specified by the system.
[0105] The device 1100 has the same principles and technical effects as the method 900, and will not be described in detail here.
[0106] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or parts of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0107] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the file burning method of the present invention according to the instructions in the program code stored in the memory.
[0108] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transfer medium. Any combination of the above is also included within the scope of readable media.
[0109] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to implement the content of the present invention described herein, and the above description of specific languages is for disclosing preferred embodiments of the present invention.
[0110] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0111] Similarly, it should be understood that in order to simplify the present disclosure and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Those skilled in the art should understand that the modules or units or components of the devices in the examples disclosed herein can be arranged in the devices described in the embodiments, or can be positioned in one or more devices different from the devices in the examples alternatively. The modules in the aforementioned examples can be combined into one module or can be divided into multiple submodules in addition.
[0112] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition they can be divided into multiple submodules or subunits or subassemblies. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification and all processes or units of any method or device disclosed in this manner can be combined in any combination. Unless otherwise clearly stated, each feature disclosed in this specification can be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0113] In addition, it will be appreciated by those skilled in the art that, although some embodiments described herein include certain features included in other embodiments rather than other features, the combination of features of different embodiments is meant to be within the scope of the present invention and to form different embodiments. In addition, some of the embodiments described herein are described as a combination of methods or method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiment are examples of devices that are used to implement the functions performed by the elements for the purpose of implementing the invention.
[0114] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0115] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is primarily selected for readability and instructional purposes, rather than for explaining or limiting the subject matter of the present invention.
Claims
1. A file burning method, characterized in that: The file burning method comprises: In response to the burning request, obtaining the user's identity information; Obtaining a key according to the identity information; encrypting the file corresponding to the burning request using the key to obtain an encrypted file; and Burn the encrypted file to a CD.
2. The file burning method according to claim 1, characterized in that: The obtaining of the user's identity information includes: Get the user's account information or ID information.
3. The file burning method according to claim 1, characterized in that: The obtaining of a key according to the identity information comprises: An information digest of the identity information is obtained, and the information digest is used as the key.
4. The file burning method according to claim 3, characterized in that: The information summary of obtaining the identity information includes: An SM3 algorithm is used to obtain an information summary based on the identity information.
5. The file burning method according to claim 2, characterized in that: The encrypting the file corresponding to the burning request comprises: The file corresponding to the burning request is encrypted using the SM4 algorithm.
6. A file migration method, characterized in that: The file migration method comprises: Mount the files in the CD into the operating system; Obtain the user's identity information; Obtaining a key according to the identity information; The key is used to decrypt the file to a directory specified by the system.
7. A file burning device, characterized in that: include: A first identity information acquisition unit, adapted to acquire the identity information of the user in response to a burning request; A first key generation unit, adapted to obtain a key according to the identity information; An encryption unit, adapted to encrypt the file corresponding to the burning request using the key to obtain an encrypted file; as well as The burning unit is adapted to burn the encrypted file to an optical disc.
8. A file migration device, characterized in that: include: A mounting unit, adapted to mount files in the optical disk into the operating system; A second identity information acquisition unit, adapted to acquire user identity information; A second key generation unit, adapted to obtain a key according to the identity information; The decryption unit is adapted to use the key to decrypt the file to a directory specified by the system.
9. A computing device, characterized in that include: at least one processor and a memory storing program instructions; When the program instructions are read and executed by the processor, the computing device executes the file burning method according to any one of claims 1 to 5 or the file migration method according to claim 6.
10. A readable storage medium storing program instructions, characterized in that: When the program instructions are read and executed by a computing device, the computing device executes the file burning method according to any one of claims 1 to 5 or the file migration method according to claim 6.
11. A computer program product, characterized in that The method comprises a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the file burning method according to any one of claims 1 to 5 or the file migration method according to claim 6.
