A geospatial data encryption method for mobile terminals
By encrypting image data and vector service data separately, the security problem of geospatial data on the mobile terminal is solved, dual encryption protection is realized, and data security and integrity are improved.
Patent Information
- Application Number
- CN202111412670.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-11-25
AI Technical Summary
Geospatial data has low encryption security on mobile terminals and is vulnerable to the threat of theft, tampering and leaking, which limits the healthy development of geographic information sharing and services.
The image data and vector service data are encrypted separately using separate encryption. The image data is encrypted through base64 encoding and MD5 encryption, and the vector service data is encrypted through aes128, forming a dual encryption protection.
It improves the security of geospatial data on the mobile side, is suitable for the encrypted use of mobile spatial data, and enhances the security and integrity of the data.
Smart Images

Figure CN114065258B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data encryption, and in particular to a geospatial data encryption method for a mobile terminal. Background Art
[0002] Data encryption technology is one of the main technical means used to improve the security and confidentiality of information systems and data and prevent secret data from being deciphered by outsiders. Technical measures are taken from both software and hardware aspects. According to different functions, data encryption technology can be divided into data transmission encryption technology, data storage encryption technology, data integrity identification technology and key management technology.
[0003] Geospatial data is a strategic resource for national informatization and the core of national spatial information, and is also the geographic positioning framework for all earth science research. With the popularization and development of digital technology and network technology, the acquisition, storage, use, access, dissemination and replication of geospatial data are simpler and faster than ever before, but the openness of the network environment makes malicious acts such as theft, tampering, forgery, infringement, and leakage a huge threat to the security of geospatial data, limiting the healthy development of geographic information sharing and services. Summary of the invention
[0004] In view of the problem of low security of geospatial data encryption in the prior art, the present invention proposes a geospatial data encryption method for mobile terminals, which adopts a separate encryption form, first encrypts the image data, and then encrypts the vector service data package file, so as to improve the security of geospatial data.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] A method for encrypting geospatial data on a mobile terminal, comprising the following steps:
[0007] S1: Download image data from the map server to obtain slice data. Each slice data is labeled as level_row_col, where level represents layer, row represents row, and col represents column.
[0008] S2: Store the slice data in S1 in the corresponding database according to the dispersion rule, then encode the slice data in each database respectively, and finally encrypt the database to obtain the first key;
[0009] S3: Obtain vector service data from the map server and package and store it to obtain a compressed package, and then encrypt the compressed package to obtain a second key.
[0010] Preferably, the map server is an ArcGIS map server.
[0011] Preferably, in S2, the dispersion rule is:
[0012] Add the slice data's labeled level, row, and col to get the first value X, and then divide the first value X by 5 to get the remainder to get the second value Y, that is It represents the floor operator, and the second value corresponds to the uniquely named database, that is, the slice data is placed in the database corresponding to the second value.
[0013] Preferably, in S2, the database is encrypted using MD5 encryption software to obtain a first key; when decryption is required, the database is first decrypted using MD5 encryption software, and then the slice data is decrypted using base64 encoding to obtain the slice data, which can then be called.
[0014] Preferably, in S3, the vector service data includes vector data and style data, the vector data is stored in a first compressed package, and the style data is stored in a second compressed package.
[0015] Preferably, in S3, the second key is a character string obtained by encrypting the identification code of the user's mobile terminal using aes128, and is also used as the decompression password of the compressed package.
[0016] In summary, due to the adoption of the above technical solution, compared with the prior art, the present invention has at least the following beneficial effects:
[0017] The present invention adopts a separate encryption form, first encrypting the image data and then encrypting the vector service data package file, which doubles the security of the geographic spatial data and is suitable for encryption of mobile spatial data. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 The figure is a schematic diagram of a geospatial data encryption method for a mobile terminal according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0019] The present invention is further described in detail below in conjunction with the examples and specific implementation methods. However, this should not be understood as the scope of the above subject matter of the present invention being limited to the following examples, and all technologies realized based on the content of the present invention belong to the scope of the present invention.
[0020] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0021] In the present invention, geospatial data includes image data and vector service data. Image data refers to data that comprehensively, truly and objectively reflects the surface characteristics of the earth by using various sensors carried by satellites. These data are processed by professional remote sensing technology to become images with high-precision geographic coordinate information. Vector service data is data that uses x and y coordinates to represent the position and shape of map graphics or geographic entities in rectangular coordinates. Vector service data generally records coordinates to accurately represent the spatial position of geographic entities as much as possible.
[0022] If the image data and vector service data are encrypted in one file, all the data can be obtained by decrypting only one file, which is less secure. Therefore, in order to improve the security of geographic spatial data, the present invention encrypts the image data and vector service data separately.
[0023] like Figure 1 As shown, the present invention provides a method for encrypting geospatial data for a mobile terminal, which specifically includes the following steps:
[0024] S1: Download image data from the map server to obtain slice data. Each slice data is labeled as level_row_col, where level represents layer, row represents row, and col represents column.
[0025] In this embodiment, the ArcGIS map server is directly called. The above-influenced data is map slice data. The slice data is marked with layer, row, and column numbers. When it is needed, it can be directly called.
[0026] For example, taking a seven-level tile data structure, the origin of the map slice is (X0, Y0), and the starting row and column number of the tile slice is (0, 0), which is marked as 7_0_0.
[0027] S2: Store the slice data in S1 in the corresponding database according to the dispersion rule, then base64 encode the slice data in each database, and finally encrypt the database using MD5 to obtain the first key.
[0028] In this embodiment, the dispersion rule is: add the labeled level, row, and col of the slice data to obtain a first value X, and then divide the first value X by 5 to obtain the remainder to obtain a second value Y (the remainder Y is the second value). It represents a floor operator, and the second value corresponds to a unique database (the database can be named 0, 1, 2, 3, 4), that is, the slice data is placed in the database corresponding to the second value.
[0029] For example, the slice data is labeled 7_0_0, then the first value X = 7+0+0 = 7, and the second value That is, put the slice data into the database corresponding to 2.
[0030] The advantage of distributed storage is that if all data is stored in one database, compressing or reading the data will take a lot of time. Distributed storage can store a large amount of data and save the time of reading data; it also improves the security of data storage.
[0031] In this embodiment, the database is encrypted using MD5 encryption software to obtain a new 32-bit file name. When decryption is required, the database is first decrypted using MD5 encryption software, and then the slice data is decrypted using base64 encoding to obtain the original slice data, which can be called.
[0032] S3: Obtain vector service data from the map server and package and store it to obtain a compressed package, and then encrypt the compressed package to obtain a second key.
[0033] In this embodiment, vector service data includes vector data and style data. Vector data is data that uses x and y coordinates to represent the position and shape of map graphics or geographic entities in rectangular coordinates. Vector data generally records coordinates to accurately represent the spatial position of geographic entities as much as possible; style data refers to vector data symbol style data and symbol library data, that is, the definition of the map, such as highway land, gardens, woodlands, lakes, scenic spots, etc.
[0034] In this embodiment, because the formats of vector data and style data are different, in order to avoid confusion and improve security, the vector data is stored in the first compressed package (it can also be stored in multiple first sub-compressed packages according to the scale of 10,000 strings), and the style data is stored in the second compressed package, and then the first compressed package and the second compressed package are encrypted to obtain the second key.
[0035] In this embodiment, the second key is a character string obtained by encrypting the identification code of the user's mobile terminal using aes128, and is also used as the decompression password of the compressed package.
[0036] The present invention adopts a separate encryption form, first encrypting the image data and then encrypting the vector service data package file, which doubles the security of the geographic spatial data and is suitable for encryption of mobile spatial data.
[0037] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A method for encrypting geospatial data for a mobile terminal, characterized in that: The specific steps include: S1: Download image data from the map server to obtain slice data. Each slice data is labeled as level_row_col, where level represents layer, row represents row, and col represents column. S2: Store the slice data in S1 in the corresponding database according to the dispersion rule, then encode the slice data in each database respectively, and finally encrypt the database to obtain the first key; In S2, the dispersion rule is: Add the slice data's labeled level, row, and col to get the first value X, and then divide the first value X by 5 and take the remainder to get the second value Y, that is represents a floor operator, the second value corresponds to a uniquely named database, that is, the slice data is placed in the database corresponding to the second value; S3: Obtain vector service data from the map server and package and store it to obtain a compressed package, and then encrypt the compressed package to obtain a second key.
2. A method for encrypting geospatial data for a mobile terminal as claimed in claim 1, characterized in that: The map server is an ArcGIS map server.
3. A method for encrypting geospatial data for a mobile terminal as claimed in claim 1, characterized in that: In S2, the database is encrypted using MD5 encryption software to obtain a first key; when decryption is required, the database is first decrypted using MD5 encryption software, and then the slice data is decrypted using base64 encoding to obtain the slice data, which can then be called.
4. A method for encrypting geospatial data for a mobile terminal as claimed in claim 1, characterized in that: In S3, the vector service data includes vector data and style data, the vector data is stored in a first compressed package, and the style data is stored in a second compressed package.
5. A method for encrypting geospatial data for a mobile terminal as claimed in claim 1, characterized in that: In S3, the second key is a character string obtained by encrypting the identification code of the user's mobile terminal using aes128, and is also used as the decompression password of the compressed package.
Citation Information
Patent Citations
Establishing method of tile pyramid model and tile reading method
CN105528460A