Drawing display method and device, storage medium, and electronic device

By hiding the key data of the drawing files in the drawing analysis system and dynamically displaying AES segmented decryption and encryption technology, the security risks existing in the drawing viewing system are solved, reducing the risk of leakage of drawing files.

CN112487449BActive Publication Date: 2025-04-25GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011374831.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-30
Publication Date
2025-04-25
Estimated Expiration
2040-11-30

AI Technical Summary

Technical Problem

There are security risks in the drawings in the viewing system. Users can download the drawing files through the right-click on the browser or download permission, resulting in a risk of leakage.

Method used

When displaying drawing files in the drawing preview interface of the drawing analysis system, the key data is hidden, and through AES segmented decryption and encryption technology, the corresponding key data is downloaded and decrypted from the server only when the user clicks on a specific location, and displayed in the drawing preview interface.

Benefits of technology

Through hidden and dynamic encryption processing, the risk of leakage of drawing files is reduced, ensuring that even if users download drawing files, they cannot obtain key information in the drawings and texts. The system data must be combined to obtain complete information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112487449B_ABST
    Figure CN112487449B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for displaying drawings, a storage medium, and an electronic device. The method comprises: displaying a drawing file on a drawing preview interface of a drawing parsing system, wherein key data of the drawing file is hidden; when a user views the key data, downloading the key data from a server according to the location of the key data; and displaying the drawing file loaded with the key data on the drawing preview interface. The present application solves the technical problem of security risks in drawings in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security, and more specifically, to a method and device for displaying drawings, a storage medium, and an electronic device. Background Art

[0002] Patent document CN103902922B discloses a method and system for preventing file theft. First, the files to be stored are segmented reasonably, and the global environment key is generated using the environment information of each device. The segmented files are encrypted with this key, and each segmented file is stored in each device after being wrapped with a shell program. When each segmented file is to be obtained or opened, the device storing the segmented file will determine whether the requesting device and the device are in the same environment. Only when they are in the same environment will the requesting device be considered safe, and operations such as obtaining or opening are allowed. This technical solution makes the files stored in the device safer, and the complete file cannot be easily obtained. In addition, if there is an illegal operation of each segmented file by an external device, it will be discovered in time, and the segmented file cannot be normally obtained and decrypted.

[0003] However, this solution still has a relatively high risk in special scenarios, such as the drawing viewing system: after the user logs in to the system, when previewing the drawing, they can download the drawing file through the right-click save as function of the browser, or users with download permissions can directly download it through the download drawing, which still poses a risk of leakage; the security level of the global environment key can also be upgraded to a higher level based on the key information of the drawing file.

[0004] With regard to the potential safety hazard of the above drawings, no effective solution has been proposed so far. Summary of the invention

[0005] The embodiments of the present application provide a method and device for displaying drawings, a storage medium, and an electronic device to at least solve the technical problem of safety hazards in drawings in related technologies.

[0006] According to one aspect of an embodiment of the present application, a method for displaying drawings is provided, comprising: displaying a drawing file on a drawing preview interface of a drawing parsing system, wherein key data of the drawing file is in a hidden state; when a user views the key data, downloading the key data from a server according to the location of the key data; and displaying the drawing file loaded with the key data on the drawing preview interface.

[0007] Optionally, when displaying the drawing file in the drawing preview interface of the drawing parsing system, after the user logs in to the drawing parsing system, the drawing file number input by the user is obtained; the parsed drawing file is downloaded from the file server according to the drawing file number, and the file stream is used for reading during the download process, and AES segmented decryption is used. After the reading is completed, the drawing file is displayed in the drawing preview interface.

[0008] Optionally, when the user views the key data, the key data is downloaded from the server according to the location of the key data, and when the user clicks on the encrypted data in the drawing file, the user's click location is obtained; the parsed data file is downloaded from the file server according to the drawing file number, and the data file is decrypted in segments using AES by stream reading during the download process, and then the corresponding key data is searched according to the click location.

[0009] Optionally, before displaying the drawing file on the drawing preview interface of the drawing parsing system, the drawing file information is obtained, the drawing is parsed, and the parsed drawing file and data file are obtained; and key data in the drawing file is replaced according to the data file.

[0010] Optionally, when replacing key data in a drawing file according to the data file, traverse the coordinate information in the data file; obtain key data corresponding to the coordinates from the drawing file; perform AES encryption on the key data, and use the encryption result to replace the key data at the corresponding position in the drawing file.

[0011] Optionally, after replacing the key data in the drawing file according to the data file, the changed drawing file and the data file are stream read, and segmented AES encryption is performed during the reading process; the drawing file and the data file after the encrypted reading are uploaded to the file server.

[0012] Optionally, when the drawing file loaded with the key data is displayed on the drawing preview interface, the key data is loaded into the drawing file according to the position for display.

[0013] According to another aspect of an embodiment of the present application, a drawing display device is also provided, including: a first display unit, used to display a drawing file on a drawing preview interface of a drawing parsing system, wherein key data of the drawing file is in a hidden state; a download unit, used to download the key data from a server according to the location of the key data when a user views the key data; and a second display unit, used to display the drawing file loaded with the key data on the drawing preview interface.

[0014] Optionally, the first display unit is also used to display the drawing file in the drawing preview interface of the drawing parsing system, after the user logs into the drawing parsing system, obtain the drawing file number input by the user; download the parsed drawing file from the file server according to the drawing file number, read it in the file stream mode during the download process, and use AES segmented decryption, and after the reading is completed, display the drawing file in the drawing preview interface.

[0015] Optionally, the download unit is also used to download the key data from the server according to the location of the key data when the user views the key data, and to obtain the user's click position when the user clicks on the encrypted data in the drawing file; download the parsed data file from the file server according to the drawing file number, use stream reading to perform AES segmented decryption on the data file during the download process, and then search for the corresponding key data according to the click position.

[0016] Optionally, the above-mentioned device may also include: a preprocessing unit, which is used to obtain drawing file information, perform drawing analysis, and obtain the parsed drawing file and data file before displaying the drawing file on the drawing preview interface of the drawing analysis system; and replace key data in the drawing file according to the data file.

[0017] Optionally, the preprocessing unit is also used to traverse the coordinate information in the data file when replacing the key data in the drawing file according to the data file; obtain the key data corresponding to the coordinates from the drawing file; perform AES encryption on the key data, and use the encryption result to replace the key data at the corresponding position in the drawing file.

[0018] Optionally, the preprocessing unit is also used to stream read the changed drawing file and the data file after replacing the key data in the drawing file according to the data file, and perform segmented AES encryption during the reading process; and upload the drawing file and the data file after the encrypted reading is completed to the file server.

[0019] Optionally, the second display unit is further configured to load the key data into the drawing file according to position for display when the drawing file loaded with the key data is displayed on the drawing preview interface.

[0020] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above method is executed when the program is run.

[0021] According to another aspect of an embodiment of the present application, an electronic device is further provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above method through the computer program.

[0022] In an embodiment of the present application, a drawing file is displayed on a drawing preview interface of a drawing parsing system, and key data of the drawing file is in a hidden state; when a user views the key data, the key data is downloaded from a server according to the location of the key data; and the drawing file loaded with the key data is displayed on the drawing preview interface. This solution is based on the data file information of the drawing parsing result, and encrypts and replaces the key data in the image and text. When a user previews the image and text download in a browser or directly downloads a drawing file, the key information in the image and text cannot be obtained, and the complete information of the image and text must be obtained in combination with the system data, so as to reduce the risk of leakage of the drawing file, and can solve the technical problem of security risks in drawings in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0024] Figure 1 is a flow chart of an optional method for displaying drawings according to an embodiment of the present application;

[0025] Figure 2 is a flow chart of an optional drawing reading according to an embodiment of the present application;

[0026] Figure 3 is a flow chart of an optional drawing encryption according to an embodiment of the present application;

[0027] Figure 4 is a schematic diagram of an optional drawing display device according to an embodiment of the present application;

[0028] as well as

[0029] Figure 5 It is a structural block diagram of a terminal according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present application.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] In order to reduce the risk of drawing file leakage and the risk of encryption algorithms being cracked, according to one aspect of an embodiment of the present application, an embodiment of a method for displaying drawings is provided. Figure 1 is a flow chart of an optional method for displaying drawings according to an embodiment of the present application, such as Figure 1 As shown, the method may include the following steps:

[0033] Step S1, displaying a drawing file on a drawing preview interface of a drawing parsing system, wherein key data of the drawing file is in a hidden state.

[0034] Optionally, before displaying the drawing file on the drawing preview interface of the drawing parsing system, the drawing file information is obtained, the drawing is parsed, and the parsed drawing file and data file are obtained; and key data in the drawing file is replaced according to the data file.

[0035] Optionally, when replacing the key data in the drawing file according to the data file, the coordinate information in the data file is traversed; the key data corresponding to the coordinates is obtained from the drawing file; the key data is encrypted by AES, and the encryption result is used to replace the key data at the corresponding position in the drawing file. A dynamic key is generated for the drawing file, and then the file stream of the drawing is encrypted in sections using AES to reduce the risk of the encryption algorithm being cracked.

[0036] Optionally, after replacing the key data in the drawing file according to the data file, the changed drawing file and the data file are stream read, and segmented AES encryption is performed during the reading process; the drawing file and the data file after the encrypted reading are uploaded to the file server.

[0037] Optionally, when displaying the drawing file in the drawing preview interface of the drawing parsing system, after the user logs in to the drawing parsing system, the drawing file number input by the user is obtained; the parsed drawing file is downloaded from the file server according to the drawing file number, and the file stream is used for reading during the download process, and AES segmented decryption is used. After the reading is completed, the drawing file is displayed in the drawing preview interface.

[0038] Step S2: when the user views the key data, the key data is downloaded from the server according to the location of the key data.

[0039] Optionally, when the user views the key data, the key data is downloaded from the server according to the location of the key data, and when the user clicks on the encrypted data in the drawing file, the user's click location is obtained; the parsed data file is downloaded from the file server according to the drawing file number, and the data file is decrypted in segments using AES by stream reading during the download process, and then the corresponding key data is searched according to the click location.

[0040] Step S3, displaying the drawing file loaded with the key data on the drawing preview interface.

[0041] Optionally, when the drawing file loaded with the key data is displayed on the drawing preview interface, the key data is loaded into the drawing file according to the position for display.

[0042] Through the above steps, the drawing file is displayed on the drawing preview interface of the drawing parsing system, and the key data of the drawing file is in a hidden state; when the user views the key data, the key data is downloaded from the server according to the location of the key data; the drawing file loaded with the key data is displayed on the drawing preview interface. This solution is based on the data file information of the drawing parsing result, and encrypts and replaces the key data in the image and text. When the user previews the image and text download in the browser or directly downloads the drawing file, the key information in the image and text cannot be obtained. It is necessary to combine the system data to obtain the complete information of the image and text, so as to reduce the risk of leakage of the drawing file, and can solve the technical problem of security risks in the drawings in the related technology.

[0043] As an optional embodiment, Figure 2 and Figure 3 As shown, the technical solution of the present application is further described in detail below in conjunction with specific implementation methods.

[0044] The present invention is based on the drawing files and data files after drawing parsing. Since the data files can obtain the key data information of the drawings and the coordinate range of the data information in the drawings, the key data can be encrypted by AES first, and then replaced into the drawing file according to the coordinate information, and then the changed drawing files and data files are read into streams, and the file streams are encrypted by AES segments, and then uploaded to the file server after encryption. When the user previews the drawing file in the system, the system first downloads the drawing file information from the file server, decrypts it using AES, and then returns to the front-end preview. If the user wants to view the key data information, he needs to click on the corresponding data position, and then the front-end obtains the coordinate information of the user's point drawing file and uploads it to the system. The system downloads the data file and decrypts it, and then obtains the corresponding data according to the coordinate information and returns it to the user for viewing.

[0045] Dynamic key generation rules for AES encryption: concatenate the file name, file acquisition time, and system private key into a value A, and then perform MD5 encryption on A to obtain a 32-bit key.

[0046] See also Figure 2 , the system user reading drawing file process and related explanation process provided by this application are as follows:

[0047] Step 101: The user logs in to the drawing analysis system, enters the drawing preview interface, enters the drawing file number, and clicks to view.

[0048] Step 102: The background downloads the drawing file according to the drawing file number, decrypts it in sections and returns it to the user for viewing.

[0049] The system downloads the parsed drawing file from the file server according to the drawing file number, reads it using file stream, and uses AES segmented decryption during the reading process. For key acquisition, please refer to the dynamic key explanation at the end of the implementation method. After the reading is completed, it is returned to the user for preview.

[0050] Step 103: The user clicks on key data information (i.e., encrypted data information) in the drawing, and the browser obtains the coordinate position of the user's click and uploads the position information to the analysis system.

[0051] Step 104: The system downloads the data file corresponding to the image and text, finds the corresponding data according to the coordinate information, decrypts it, and returns it to the user for viewing.

[0052] The system downloads the corresponding data file according to the drawing file number, and uses stream reading to perform AES segmented decryption on the data file. For key acquisition, please refer to the dynamic key explanation at the end of the implementation method, and then find the corresponding key data according to the coordinate information and return it to the user for viewing.

[0053] See also Figure 3, the system encryption drawing file flow chart and related explanation process provided by this application are as follows:

[0054] Step 201: The system connects to the graphic system through the intranet, obtains the drawing file information, performs drawing analysis, and obtains the analyzed drawing files and data files.

[0055] Step 202: traverse the coordinate data in the data file, obtain the graphic data corresponding to the coordinates, and perform AES encryption on the graphic data. For key acquisition, please refer to the dynamic key explanation at the end of the implementation method, and overwrite / or replace the encryption result to the corresponding position in the drawing file to ensure that the key data information on the drawing is invisible.

[0056] Step 203: Stream read the modified drawing file and data file, and perform segmented AES encryption during the reading process. For key acquisition, please refer to the dynamic key explanation at the end of the implementation method. After the encrypted reading is completed, upload it to the file server.

[0057] Dynamic key explanation: The system defines a global private key A, the drawing file name B, the system obtains the drawing time C, concatenates the values ​​​​A, B, and C to obtain the value D, and then encrypts the value D with MD5 to obtain the unique key of the drawing file, so that the key of each drawing file is different.

[0058] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0059] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0060] According to another aspect of an embodiment of the present application, a drawing display device for implementing the above-mentioned drawing display method is also provided. Figure 4is a schematic diagram of an optional drawing display device according to an embodiment of the present application, such as Figure 4 As shown, the device may include:

[0061] The first display unit 41 is used to display the drawing file in the drawing preview interface of the drawing parsing system, wherein the key data of the drawing file is in a hidden state; the download unit 43 is used to download the key data from the server according to the location of the key data when the user views the key data; the second display unit 45 is used to display the drawing file loaded with the key data in the drawing preview interface.

[0062] It should be noted that the first display unit 41 in this embodiment can be used to execute step S1 in the embodiment of the present application, the download unit 43 in this embodiment can be used to execute step S2 in the embodiment of the present application, and the second display unit 45 in this embodiment can be used to execute step S3 in the embodiment of the present application.

[0063] Through the above module, the drawing file is displayed on the drawing preview interface of the drawing parsing system, and the key data of the drawing file is in a hidden state; when the user views the key data, the key data is downloaded from the server according to the location of the key data; the drawing file loaded with the key data is displayed on the drawing preview interface. This solution is based on the data file information of the drawing parsing result, and encrypts and replaces the key data in the image and text. When the user previews the image and text download in the browser or directly downloads the drawing file, the key information in the image and text cannot be obtained. It is necessary to combine the system data to obtain the complete information of the image and text, so as to reduce the risk of leakage of the drawing file, and can solve the technical problem of security risks in the drawings in the related technology.

[0064] Optionally, the first display unit is also used to display the drawing file in the drawing preview interface of the drawing parsing system, after the user logs into the drawing parsing system, obtain the drawing file number input by the user; download the parsed drawing file from the file server according to the drawing file number, read it in the file stream mode during the download process, and use AES segmented decryption, and after the reading is completed, display the drawing file in the drawing preview interface.

[0065] Optionally, the download unit is also used to download the key data from the server according to the location of the key data when the user views the key data, and to obtain the user's click position when the user clicks on the encrypted data in the drawing file; download the parsed data file from the file server according to the drawing file number, use stream reading to perform AES segmented decryption on the data file during the download process, and then search for the corresponding key data according to the click position.

[0066] Optionally, the above-mentioned device may also include: a preprocessing unit, which is used to obtain drawing file information, perform drawing analysis, and obtain the parsed drawing file and data file before displaying the drawing file on the drawing preview interface of the drawing analysis system; and replace key data in the drawing file according to the data file.

[0067] Optionally, the preprocessing unit is also used to traverse the coordinate information in the data file when replacing the key data in the drawing file according to the data file; obtain the key data corresponding to the coordinates from the drawing file; perform AES encryption on the key data, and use the encryption result to replace the key data at the corresponding position in the drawing file.

[0068] Optionally, the preprocessing unit is also used to stream read the changed drawing file and the data file after replacing the key data in the drawing file according to the data file, and perform segmented AES encryption during the reading process; and upload the drawing file and the data file after the encrypted reading is completed to the file server.

[0069] Optionally, the second display unit is further configured to load the key data into the drawing file according to position for display when the drawing file loaded with the key data is displayed on the drawing preview interface.

[0070] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can be run in a corresponding hardware environment, can be implemented by software, and can also be implemented by hardware, wherein the hardware environment includes a network environment.

[0071] According to another aspect of an embodiment of the present application, a server or terminal for implementing the above-mentioned drawing display method is also provided.

[0072] Figure 5 is a structural block diagram of a terminal according to an embodiment of the present application, such as Figure 5 As shown, the terminal may include: one or more (only one is shown) processors 201, a memory 203, and a transmission device 205, such as Figure 5 As shown, the terminal may also include an input and output device 207.

[0073] Among them, the memory 203 can be used to store software programs and modules, such as program instructions / modules corresponding to the method and device for displaying drawings in the embodiments of the present application. The processor 201 executes various functional applications and data processing by running the software programs and modules stored in the memory 203, that is, realizing the above-mentioned method for displaying drawings. The memory 203 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 203 may further include a memory remotely arranged relative to the processor 201, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0074] The above-mentioned transmission device 205 is used to receive or send data via a network, and can also be used for data transmission between a processor and a memory. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 205 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 205 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.

[0075] Specifically, the memory 203 is used to store application programs.

[0076] The processor 201 may call the application stored in the memory 203 through the transmission device 205 to perform the following steps:

[0077] A drawing file is displayed on a drawing preview interface of a drawing parsing system, wherein key data of the drawing file is hidden; when a user views the key data, the key data is downloaded from a server according to the location of the key data; and the drawing file loaded with the key data is displayed on the drawing preview interface.

[0078] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0079] It can be understood by those skilled in the art that Figure 5 The structure shown is for illustration only, and the terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 5It does not limit the structure of the above electronic device. For example, the terminal may also include Figure 5 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 5 Different configurations are shown.

[0080] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0081] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to execute the program code of the drawing display method.

[0082] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0083] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0084] A drawing file is displayed on a drawing preview interface of a drawing parsing system, wherein key data of the drawing file is hidden; when a user views the key data, the key data is downloaded from a server according to the location of the key data; and the drawing file loaded with the key data is displayed on the drawing preview interface.

[0085] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0086] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0087] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0088] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0089] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0090] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0091] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0092] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0093] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for displaying drawings, characterized in that: include: Displaying the drawing file on the drawing preview interface of the drawing parsing system, wherein key data of the drawing file is in a hidden state; When the user views the key data, downloading the key data from the server according to the location of the key data; Displaying the drawing file loaded with the key data on the drawing preview interface; Before displaying the drawing file on the drawing preview interface of the drawing parsing system, the method further includes: Obtain drawing file information, perform drawing analysis, and obtain the analyzed drawing files and data files; Replace key data in the drawing file according to the data file; The key data in the drawing file replaced according to the data file include: Traversing the coordinate information in the data file; Obtain key data corresponding to the coordinates from the drawing file; Perform AES encryption on the key data, and use the encryption result to replace the key data at the corresponding position in the drawing file; After replacing the key data in the drawing file according to the data file, the method further includes: Performing stream reading on the changed drawing file and the data file, and performing segmented AES encryption during the reading process; The drawing file and the data file after the encrypted reading are uploaded to the file server.

2. The method according to claim 1, characterized in that Drawing files displayed in the drawing preview interface of the drawing parsing system include: After the user logs in to the drawing parsing system, obtaining the drawing file number input by the user; The parsed drawing file is downloaded from the file server according to the drawing file number. During the downloading process, the file is read in the form of file stream and decrypted in sections using AES. After the reading is completed, the drawing file is displayed in the drawing preview interface.

3. The method according to claim 1, characterized in that When the user views the key data, downloading the key data from the server according to the location of the key data includes: When the user clicks on the encrypted data in the drawing file, obtaining the click position of the user; The parsed data file is downloaded from the file server according to the drawing file number. During the downloading process, the data file is decrypted in segments using AES by using stream reading, and then the corresponding key data is searched according to the click position.

4. The method according to claim 1, characterized in that: Displaying the drawing file loaded with the key data on the drawing preview interface includes: The key data is loaded into the drawing file according to the location for display.

5. A drawing display device, characterized in that: include: A first display unit is used to display a drawing file on a drawing preview interface of a drawing parsing system, wherein key data of the drawing file is in a hidden state; A downloading unit, configured to download the key data from a server according to the location of the key data when a user views the key data; A second display unit, used for displaying the drawing file loaded with the key data on the drawing preview interface; A preprocessing unit is used to obtain drawing file information, perform drawing analysis, and obtain the parsed drawing file and data file before displaying the drawing file on the drawing preview interface of the drawing parsing system; replace the key data in the drawing file according to the data file; and traverse the coordinate information in the data file when replacing the key data in the drawing file according to the data file; obtain the key data corresponding to the coordinates from the drawing file; perform AES encryption on the key data, and use the encryption result to replace the key data at the corresponding position in the drawing file; and after replacing the key data in the drawing file according to the data file, stream read the changed drawing file and data file, and perform segmented AES encryption during the reading process; upload the drawing file and data file after the encrypted reading is completed to the file server.

6. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 4 when executed.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor executes the method described in any one of claims 1 to 4 through the computer program.

Citation Information

Patent Citations

  • A method and system for preventing file theft

    CN103902922B

  • Method and system for facilities management

    CN102209973A

  • Sketch based computer-aided design (CAD) model local encryption method

    CN103778383A

  • Image encryption storage method

    CN107222488A