Method, system and device for preventing mistaken transmission and picture tampering and storage medium
By verifying the location and encoding information of the operation and maintenance photos in the APP of the mobile terminal, and using encryption algorithms to prevent mistransmitting and tampering of photos, it solves the problem of mistransmitting and tampering of operation and maintenance photos in poor network conditions, ensuring the environmental air The authenticity and accuracy of quality monitoring data.
Patent Information
- Application Number
- CN202411246328.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-09-06
AI Technical Summary
In the operation and maintenance of environmental air quality monitoring sites, photos are prone to mistransmitting or tampering in environments with poor network conditions, which affects the accuracy and authenticity of monitoring data.
Through the mobile terminal's APP, we can obtain the unique encoding information and positioning information in the operation and maintenance task work order, verify the location distance difference, enable the photo collection function, and use the encryption algorithm to generate encrypted cipher text, embed it in the photo attributes, and ensure that the photos are uploaded before uploading Perform hash matching verification to prevent mistransmission and tampering.
It effectively prevents the mistransmitting and tampering of operation and maintenance photos, ensures the authenticity of traces left by operation and maintenance work, prevents human interference, and ensures the accuracy of environmental air quality monitoring data.
Smart Images

Figure CN119128942A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent environmental monitoring technology, and in particular to a method, system, device and storage medium for preventing mistransmission and tampering of photos. Background Art
[0002] The operation and maintenance management of ambient air quality monitoring sites is an important part of ensuring the accuracy, timeliness and effectiveness of monitoring data. With the rapid development of information technology, in order to improve the timeliness and standardization of operation and maintenance management, terminal APP and operation and maintenance platform have been launched for online reporting and trace management. Operation and maintenance personnel can carry out site operation and maintenance work and fill in task work orders according to the requirements of operation and maintenance tasks, and collect, store and upload relevant operation and maintenance photos through terminal APP. Afterwards, the auditor will review the operation and maintenance work based on the photos and the content reported by the operation and maintenance personnel, and promptly discover abnormal situations in the operation and maintenance process.
[0003] Site operation and maintenance work is often carried out in geographically remote environments with poor network conditions, and requires frequent collection and uploading of a large number of on-site operation and maintenance photos. In the actual site operation and maintenance photo collection work, operation and maintenance personnel usually temporarily store the site photos taken in the local album of their personal devices, and then upload the site operation and maintenance photos after completing the on-site work and returning to the office or urban areas with better network conditions. Therefore, there may be situations where operation and maintenance personnel mistakenly upload site photos, or process the collected operation and maintenance photos before uploading them in order to conceal problems in the operation and maintenance work, which affects the monitoring data quality of the ambient air quality monitoring site.
[0004] Therefore, it is necessary to propose a solution that can effectively prevent problems such as mistransmission and tampering of photos during the operation and maintenance of environmental air quality monitoring stations. Summary of the invention
[0005] The embodiments of the present application provide a method, system, device and storage medium for preventing wrong transmission and tampering of photos to solve the problems existing in the related technologies. The technical solutions are as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for preventing wrong transmission and tampering of photos, which is applied to a mobile terminal, wherein the mobile terminal is installed with a target APP, and the method includes:
[0007] Obtaining an operation and maintenance task work order of an ambient air quality monitoring site through the target APP, wherein the operation and maintenance task work order includes unique coding information and first positioning information of the ambient air quality monitoring site;
[0008] Acquire second positioning information of the location of the mobile terminal;
[0009] When verifying that the distance difference between the first positioning information and the second positioning information is within a preset distance threshold range, enabling the photo collection function of the target APP;
[0010] Collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP;
[0011] Performing hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value;
[0012] Generate an encrypted ciphertext using an encryption algorithm based on the unique encoding information and the first photo hash value;
[0013] Adding the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo;
[0014] The on-site operation and maintenance encrypted photos are uploaded to the operation and maintenance platform through the target APP.
[0015] In one embodiment, the method further comprises:
[0016] When it is verified that the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold range, the photo collection function is prohibited from being enabled.
[0017] In one embodiment, the photo collection function is embedded in the operation and maintenance task work order in the form of a component.
[0018] In one embodiment, collecting and generating on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP includes:
[0019] Collecting on-site photos of the ambient air quality monitoring site through the target APP;
[0020] Acquire the acquisition time information of the on-site photo, the unique coding information of the ambient air quality monitoring site, and the first positioning information;
[0021] The on-site operation and maintenance photo is generated by adopting a watermark embedding method according to the on-site photo, the acquisition time information, the unique coding information and the first positioning information.
[0022] In one implementation, using an encryption algorithm to generate an encrypted ciphertext according to the unique coding information and the first photo hash value includes:
[0023] Constructing a photo string in the form of the unique coding information + the first photo hash value;
[0024] The photo character string is encrypted using the encryption algorithm to generate the encrypted ciphertext.
[0025] In one embodiment, the method further comprises:
[0026] Before uploading the encrypted photos of on-site operation and maintenance to the operation and maintenance platform, obtaining attribute information of the encrypted photos of on-site operation and maintenance;
[0027] Decrypting the encrypted ciphertext in the attribute information using a decryption algorithm to obtain a decrypted plaintext;
[0028] Calculate a second photo hash value of the on-site operation and maintenance encrypted photo;
[0029] Obtain the unique coding information, and determine the character length N of the unique coding information;
[0030] When it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo is not mistransmitted or tampered with, and the on-site operation and maintenance encrypted photo is uploaded to the operation and maintenance platform through the target APP.
[0031] In one embodiment, the method further comprises:
[0032] When it is determined that the first N characters in the decrypted plaintext do not match the unique coding information, and / or when the N+1th character to the last character in the decrypted plaintext do not match the hash value of the second photo, a prompt message is output through the target APP to warn the on-site operation and maintenance that the encrypted photo has been mistransmitted and / or tampered with, and an alarm log is generated and uploaded to the operation and maintenance platform.
[0033] In a second aspect, the embodiment of the present application further provides a system for preventing mistransmission and tampering of photos, the system comprising:
[0034] A task information module, used to obtain an operation and maintenance task work order of an ambient air quality monitoring site through a target APP installed on a mobile terminal, wherein the operation and maintenance task work order includes unique coding information and first positioning information of the ambient air quality monitoring site;
[0035] A positioning acquisition module, used to obtain second positioning information of the location of the mobile terminal;
[0036] A use restriction module is used to verify that when the distance difference between the first positioning information and the second positioning information is within a preset distance threshold range, the photo collection function of the target APP is enabled;
[0037] A photo generation module, used to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP;
[0038] A hash calculation module, used to perform hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value;
[0039] An encryption module, used to generate an encrypted ciphertext according to the unique coding information and the first photo hash value using an encryption algorithm;
[0040] A ciphertext adding module, used to add the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo;
[0041] The photo uploading module is used to upload the on-site operation and maintenance encrypted photos to the operation and maintenance platform through the target APP.
[0042] In one embodiment, the usage restriction module is further used to:
[0043] When it is verified that the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold range, the photo collection function is prohibited from being enabled.
[0044] In one embodiment, the system further includes a photo collection module, and the photo collection module is embedded in the operation and maintenance task work order in the form of a component.
[0045] In one embodiment, when the photo generation module is used to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP, it is specifically used to:
[0046] Calling the target APP through the photo collection module to collect on-site photos of the ambient air quality monitoring site;
[0047] Acquire the acquisition time information of the on-site photo, the unique coding information of the ambient air quality monitoring site, and the first positioning information;
[0048] The on-site operation and maintenance photo is generated by adopting a watermark embedding method according to the on-site photo, the acquisition time information, the unique coding information and the first positioning information.
[0049] In one implementation, when the encryption module is used to generate an encrypted ciphertext using an encryption algorithm according to the unique coding information and the first photo hash value, it is specifically used to:
[0050] Constructing a photo string in the form of the unique coding information + the first photo hash value;
[0051] The photo character string is encrypted using the encryption algorithm to generate the encrypted ciphertext.
[0052] In one embodiment, the system further includes a decryption module and a plaintext matching module;
[0053] The decryption module is used to obtain the attribute information of the on-site operation and maintenance encrypted photo before uploading the on-site operation and maintenance encrypted photo to the operation and maintenance platform; use the decryption algorithm to decrypt the encrypted ciphertext in the attribute information to obtain the decrypted plaintext;
[0054] The hash calculation module is further used to calculate a second photo hash value of the on-site operation and maintenance encrypted photo;
[0055] The plaintext matching module is used to obtain the unique coding information and determine the character length N of the unique coding information; when it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo is not mistransmitted or tampered with, and the target APP is called through the photo upload module to upload the on-site operation and maintenance encrypted photo to the operation and maintenance platform.
[0056] In one embodiment, the system further comprises an alarm module;
[0057] When the plaintext matching module determines that the first N characters in the decrypted plaintext do not match the unique coding information, and / or when the N+1th character to the last character in the decrypted plaintext do not match the hash value of the second photo, the target APP is called through the alarm module to output a prompt message to warn the on-site operation and maintenance that the encrypted photos are mistransmitted and / or tampered with, and an alarm log is generated and uploaded to the operation and maintenance platform.
[0058] In a third aspect, an embodiment of the present application further provides a computer device, comprising: a memory and a processor, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement a method in any one of the above-mentioned aspects, wherein the memory and the processor communicate with each other through an internal connection path.
[0059] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is implemented.
[0060] The advantages or beneficial effects of the above technical solution include at least:
[0061] The present application can take into account the needs of operation and maintenance personnel to collect operation and maintenance photos in an environment with poor network conditions at the environmental air quality monitoring site, and temporarily store the on-site operation and maintenance photos of the environmental air quality monitoring site. At the same time, it can avoid the mistransmission and tampering of photos during the on-site operation and maintenance of the environmental air quality monitoring site, ensure the authenticity of the traces left by the operation and maintenance work of the environmental air quality monitoring site, and effectively prevent the occurrence of human interference.
[0062] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0064] Figure 1 A flowchart of a method for preventing mistransmission and tampering of photos provided in an embodiment of the present application;
[0065] Figure 2 A flowchart of another method for preventing mistransmission and tampering of photos provided in an embodiment of the present application;
[0066] Figure 3 A structural block diagram of a system for preventing mistransmission and tampering of photos provided in an embodiment of the present application;
[0067] Figure 4 An example diagram of an operation and maintenance task work order provided in an embodiment of the present application;
[0068] Figure 5 A structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0070] Figure 1The flowchart of the method for preventing wrong transmission and tampering of photos according to an embodiment of the present application is shown. The method can be used in a mobile terminal, that is, the execution subject of the method can be a mobile terminal, wherein the mobile terminal can be installed with a target APP, and the target APP can be an APP dedicated to the collection and upload of site operation and maintenance photos. Figure 1 As shown, the method may include the following steps:
[0071] S101. Obtain the operation and maintenance task order of the ambient air quality monitoring site through the target APP.
[0072] In one embodiment, the operation and maintenance task work order may include, but is not limited to: unique coding information and first positioning information of the ambient air quality monitoring site.
[0073] As an example, the mobile terminal can obtain the operation and maintenance task work order of the ambient air quality monitoring site distributed by the central end through the target APP. The operation and maintenance task work order can be preset with operation and maintenance task information, as well as the unique coding information and first positioning information of the ambient air quality monitoring site. The user can go to the ambient air quality monitoring site to carry out operation and maintenance and operation and maintenance photo collection according to the operation and maintenance task information in the operation and maintenance task work order.
[0074] In one embodiment, the unique coding information of the ambient air quality monitoring site can be set as a fixed length code according to the coding rules, such as a 9-digit code. Among them, the administrative area code plus an additional three-digit code can be used to ensure the uniqueness of the ambient air quality monitoring site code and the standardization and convenience of management. For example, the unique coding information of the ambient air quality monitoring site can be 110000001.
[0075] In one embodiment, the first positioning information may be GPS positioning information, which may adopt the WGS-84 coordinate system. The first positioning information may include longitude coordinate values and latitude coordinate values, and the precision of the longitude coordinate values and the latitude coordinate values may be set to 4 decimal places. Exemplarily, the first positioning information may be expressed as (40.0302, 116.4085).
[0076] S102: Acquire second positioning information of the location of the mobile terminal.
[0077] In one implementation, the second positioning information of the location of the mobile terminal can be obtained before the target APP starts collecting on-site operation and maintenance photos. For example, the second positioning information of the location of the mobile terminal can be obtained by the target APP using the positioning function of the mobile terminal.
[0078] In one embodiment, the second positioning information may be GPS positioning information, which may adopt the WGS-84 coordinate system. The second positioning information may include longitude coordinate values and latitude coordinate values, and the precision of the longitude coordinate values and the latitude coordinate values may be set to 4 decimal places. Exemplarily, the second positioning information may be expressed as (40.0300, 116.4084).
[0079] S103, verify whether the distance difference between the first positioning information and the second positioning information is within a preset distance threshold range. When the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold range, execute step S104, or when the distance difference between the first positioning information and the second positioning information is within the preset distance threshold range, execute step S105.
[0080] In one embodiment, when the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold range, it means that the distance range between the user and the ambient air quality monitoring site is not within the allowed range. At this time, step S104 is executed to not allow the user to collect operation and maintenance photos. When the distance difference between the first positioning information and the second positioning information is within the preset distance threshold range, it means that the distance range between the user and the ambient air quality monitoring site is within the allowed range. At this time, step S105 can be executed to allow the user to collect operation and maintenance photos.
[0081] In specific implementation, the preset distance threshold range can be set according to actual needs, and the embodiments of the present application are not limited to this.
[0082] S104: prohibiting the photo collection function of the target APP from being enabled.
[0083] S105, start the photo collection function of the target APP.
[0084] In one implementation, the photo collection function of the target APP may be embedded in the operation and maintenance task work order in the form of a component.
[0085] In an embodiment of the present application, by executing steps S103-S105, it is possible to ensure that the user goes to the environmental air quality monitoring site to carry out operation and maintenance and collect operation and maintenance photos before collecting photos through the target APP, and it can be ensured that the on-site operation and maintenance photos collected through the target APP are of the environmental air quality monitoring site specified in the operation and maintenance task work order, thereby avoiding human interference and falsification from the source.
[0086] S106. Collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP.
[0087] In one implementation, the implementation process of step S106 may include the following steps:
[0088] S1061. Collect on-site photos of the environmental air quality monitoring site through the target APP.
[0089] S1062. Obtain the collection time information of the on-site photo and the unique coding information and first positioning information of the ambient air quality monitoring site.
[0090] S1063: Generate the on-site operation and maintenance photo by embedding a watermark according to the on-site photo and its acquisition time information, the unique coding information and the first positioning information.
[0091] It can be understood that the on-site operation and maintenance photo contains watermark information such as the acquisition time information, the unique coding information and the first positioning information.
[0092] In the embodiment of the present application, by executing steps S1061 to S1063, it is possible to prevent the on-site operation and maintenance photos from being tampered with while facilitating the work order reviewers to quickly understand the detailed information of the on-site operation and maintenance photos.
[0093] S107. Calculate a hash value for the on-site operation and maintenance photo to obtain a first photo hash value.
[0094] In specific implementation, the existing hash calculation method can be used to calculate the hash value of the on-site operation and maintenance photos, which is not limited in the embodiments of the present application.
[0095] S108. Generate an encrypted ciphertext using an encryption algorithm according to the unique coding information and the hash value of the first photo.
[0096] In one implementation, a photo string can be constructed according to the unique coding information and the first photo hash value in the form of unique coding information + first photo hash value; and then the encryption algorithm is used to encrypt the photo string to generate the encrypted ciphertext.
[0097] For example, it is assumed that the unique encoding information and the first photo hash value are as follows:
[0098] Unique coding information: 110000001;
[0099] First photo hash value: 24254c6607d1fc21d9159f4ed4d6e505;
[0100] The constructed photo string is: 11000000124254c6607d1fc21d9159f4ed4d6e505;
[0101] Assume the encryption key is:
[0102] 5aSn5a626KaB5rOo5oSP6Lqr5L2T77yM5LiN6KaB54as5aSc5YaZ5Luj56CB;
[0103] Then encrypt the photo string and generate the encrypted ciphertext as follows:
[0104] Iju1qBo6ipCQ7Va+J3eEC9t9Zypj2yPJJ+SP1a+3bi61uSpBXh0nOvkdQTEXAI j7.
[0105] As an example, the encryption algorithm may be a DES symmetric encryption algorithm.
[0106] S109: Add the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo.
[0107] In one implementation, the encrypted ciphertext may be used as a title in the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo.
[0108] In one implementation, the on-site operation and maintenance encrypted photo may be stored in a mobile terminal.
[0109] S110, uploading the encrypted photos of on-site operation and maintenance to the operation and maintenance platform through the target APP.
[0110] In one implementation, the photo upload function of the target APP may be embedded in the operation and maintenance task work order in the form of a component, so as to facilitate the selection and upload of photos stored in the mobile terminal.
[0111] In an embodiment of the present application, by installing the target APP in the mobile terminal (i.e., the user device), based on the unique coding information of the environmental air quality monitoring site in the operation and maintenance task work order issued by the center, the first positioning and the first photo hash value of the on-site operation and maintenance photos of the environmental air quality monitoring site, by verifying whether the distance difference between the mobile terminal and the environmental air quality monitoring site is within the preset distance threshold, and by encrypting the on-site operation and maintenance photos to generate on-site operation and maintenance encrypted photos, it is possible to prevent the mistransmission and tampering of photos on the mobile terminal (i.e., the user end), while taking into account the need for operation and maintenance personnel to carry out operation and maintenance photo collection work in an environment with poor network conditions at the environmental air quality monitoring site and temporarily store on-site operation and maintenance photos, avoid the mistransmission and tampering of photos in on-site operation and maintenance, ensure the authenticity of the traces left by the operation and maintenance work of the environmental air quality monitoring site, and effectively prevent the occurrence of human interference.
[0112] In an applicable scenario of the present application, combined with Figure 1 and Figure 2As shown, the method for preventing wrong transmission and tampering of photos provided in the embodiment of the present application may also include the following steps:
[0113] S111. Before uploading the encrypted photos of on-site operation and maintenance to the operation and maintenance platform, obtain attribute information of the encrypted photos of on-site operation and maintenance.
[0114] S112. Decrypt the encrypted ciphertext in the attribute information using a decryption algorithm to obtain a decrypted plaintext.
[0115] As an example, the encrypted ciphertext in the attribute information can be decrypted using the DES symmetric encryption algorithm to obtain the decrypted plaintext. For example, the obtained decrypted plaintext can be expressed as: 11000000124254c6607d1fc21d9159f4ed4d6e505, which is the photo string in the above example.
[0116] S113. Calculate a second photo hash value of the on-site operation and maintenance encrypted photo.
[0117] In specific implementation, the existing hash calculation method can be used to calculate the hash value of the on-site operation and maintenance encrypted photos, which is not limited in the embodiments of the present application.
[0118] In one embodiment, the second photo hash value is the same as the first photo hash value.
[0119] S114. Obtain unique coding information of the ambient air quality monitoring site, and determine the character length N of the unique coding information.
[0120] As an example, when the unique coding information of the ambient air quality monitoring site is 110000001, it can be determined that the character length N of the unique coding information is 9.
[0121] S115. Determine whether the decrypted plaintext matches the second photo hash value and the unique coding information. When it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the second photo hash value, execute step S116, or, when it is determined that the first N characters in the decrypted plaintext do not match the unique coding information, and / or, when the N+1th character to the last character in the decrypted plaintext do not match the second photo hash value, execute step S117.
[0122] In one implementation, the following two judgment processes may be performed simultaneously or in a corresponding order:
[0123] The first judgment process: match the first N characters in the decrypted plaintext with the unique encoding information to determine whether the two are consistent.
[0124] In the first judgment process, the string extraction function may be called to extract the first N characters in the decrypted plaintext as the first extracted characters, and then the first extracted characters are matched with the unique encoding information to determine whether the two are consistent.
[0125] The second judgment process: match the N+1th character to the last character in the decrypted plaintext with the hash value of the second photo to determine whether the two are consistent.
[0126] In the second judgment process, the string extraction function is called to extract the N+1th character to the last character in the decrypted plaintext as the second extracted character, and then the second extracted character is matched with the hash value of the second photo to determine whether the two are consistent.
[0127] After the above two judgment processes, when it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, step S116 can be executed.
[0128] After the above two judgment processes, when only the first N characters in the decrypted plaintext do not match the unique coding information, it is determined that the on-site operation and maintenance encrypted photo is mistransmitted, and step S117 can be executed. In this case, the prompt information output by the target APP is used to warn that the on-site operation and maintenance encrypted photo is mistransmitted.
[0129] After the above two judgment processes, when only the N+1th character to the last character in the decrypted plaintext does not match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo has been tampered with, and step S117 can be executed. In this case, the prompt information output by the target APP is used to warn that the on-site operation and maintenance encrypted photo has been tampered with.
[0130] After the above two judgment processes, if it is determined that the first N characters in the decrypted plaintext do not match the unique coding information, and the N+1th character to the last character in the decrypted plaintext do not match the second photo hash value, it is determined that the on-site operation and maintenance encrypted photo is both mis-transmitted and tampered with, and step S117 can be executed. In this case, the prompt information output by the target APP is used to warn that the on-site operation and maintenance encrypted photo is mis-transmitted and tampered with.
[0131] S116. Determine that the encrypted photos of the on-site operation and maintenance are not mis-transmitted or tampered with, and upload the encrypted photos of the on-site operation and maintenance to the operation and maintenance platform through the target APP.
[0132] S117. Outputting, through the target APP, a prompt message for warning the on-site operation and maintenance staff that the encrypted photo has been mis-transmitted and / or tampered with, and generating an alarm log and uploading it to the operation and maintenance platform.
[0133] As an example, in step S117, uploading the encrypted on-site operation and maintenance photos to the operation and maintenance platform may also be prohibited.
[0134] In an embodiment of the present application, by executing steps S111-S117, the attribute information of the on-site operation and maintenance encrypted photos can be verified with the unique coding information of the environmental air quality monitoring site and the matching of the second photo hash value of the on-site operation and maintenance encrypted photos, so that when the on-site operation and maintenance photos are mistransmitted and / or tampered with on the user side, the user can be promptly prompted, further avoiding the mistransmission and tampering of photos in the on-site operation and maintenance of the environmental air quality monitoring site, ensuring the authenticity of the traces left by the operation and maintenance work of the environmental air quality monitoring site, and effectively preventing the occurrence of human interference.
[0135] In summary, the method for preventing mistransmission and tampering of photos provided in the embodiments of the present application can take into account the needs of operation and maintenance personnel to carry out operation and maintenance photo collection work in an environment with poor network conditions at the environmental air quality monitoring site, and temporarily store on-site operation and maintenance photos of the environmental air quality monitoring site. At the same time, it avoids the mistransmission and tampering of photos that exist in the on-site operation and maintenance of the environmental air quality monitoring site, ensures the authenticity of the traces left by the operation and maintenance work of the environmental air quality monitoring site, and effectively prevents the occurrence of human interference.
[0136] Figure 3 FIG. 1 is a block diagram showing a system for preventing mistransmission and tampering of photos according to an embodiment of the present application. Figure 3 As shown, the system may include:
[0137] The task information module 201 is used to obtain the operation and maintenance task work order of the ambient air quality monitoring site through the target APP installed in the mobile terminal, and the operation and maintenance task work order includes the unique coding information and the first positioning information of the ambient air quality monitoring site;
[0138] The positioning acquisition module 202 is used to obtain second positioning information of the location of the mobile terminal;
[0139] The use restriction module 203 is used to enable the photo collection function of the target APP when verifying that the distance difference between the first positioning information and the second positioning information is within a preset distance threshold range;
[0140] The photo generation module 204 is used to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP;
[0141] A hash calculation module 205 is used to perform hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value;
[0142] An encryption module 206, configured to generate an encrypted ciphertext using an encryption algorithm according to the unique coding information and the hash value of the first photo;
[0143] The ciphertext adding module 207 is used to add the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo;
[0144] The photo uploading module 208 is used to upload the encrypted photos of on-site operation and maintenance to the operation and maintenance platform through the target APP.
[0145] In one embodiment, the usage restriction module 203 is further used to:
[0146] When it is verified that the distance difference between the first positioning information and the second positioning information is not within a preset distance threshold range, the photo collection function is prohibited from being enabled.
[0147] In one embodiment, Figure 4 As shown, the system further includes a photo collection module 209, which is embedded in the operation and maintenance task worksheet in the form of a component.
[0148] In one embodiment, when the photo generation module 204 is used to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP, it is specifically used to:
[0149] The target APP is called by the photo collection module 209 to collect on-site photos of the ambient air quality monitoring site;
[0150] Obtain the collection time information of the on-site photos and the unique coding information and first positioning information of the ambient air quality monitoring site;
[0151] By adopting the watermark embedding method, on-site operation and maintenance photos are generated based on the on-site photos, collection time information, unique coding information and the first positioning information.
[0152] In one embodiment, when the encryption module 206 is used to generate the encrypted ciphertext according to the unique coding information and the first photo hash value using the encryption algorithm, it is specifically used to:
[0153] Construct a photo string in the form of unique coding information + first photo hash value;
[0154] The photo string is encrypted using an encryption algorithm to generate encrypted ciphertext.
[0155] In one embodiment, the system further includes a decryption module 210 and a plaintext matching module 211;
[0156] The decryption module 210 is used to obtain the attribute information of the encrypted photos of the on-site operation and maintenance before uploading them to the operation and maintenance platform; decrypt the encrypted ciphertext in the attribute information using a decryption algorithm to obtain a decrypted plaintext;
[0157] The hash calculation module 205 is also used to calculate the second photo hash value of the on-site operation and maintenance encrypted photo;
[0158] The plaintext matching module 211 is used to obtain the unique coding information and determine the character length N of the unique coding information; when it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photos are not mistransmitted or tampered with, and the target APP is called through the photo upload module 208 to upload the on-site operation and maintenance encrypted photos to the operation and maintenance platform.
[0159] In one embodiment, the system further includes an alarm module 212;
[0160] When the plaintext matching module 211 determines that the first N characters in the decrypted plaintext do not match the unique coding information, and / or when the N+1th character to the last character in the decrypted plaintext do not match the hash value of the second photo, the target APP is called through the alarm module 212 to output a prompt message to warn the on-site operation and maintenance that the encrypted photos are mistransmitted and / or tampered with, and an alarm log is generated and uploaded to the operation and maintenance platform.
[0161] The functions of each module in the system for preventing mistransmission and tampering of photos in the embodiment of the present application can be found in the corresponding description in the above method and will not be repeated here.
[0162] Figure 5 FIG. 2 shows a block diagram of a computer device according to an embodiment of the present application. Figure 5 As shown, the computer device includes: a memory 301 and a processor 302. The memory 301 stores instructions, and the instructions are loaded and executed by the processor 302 to implement the method for preventing wrong transmission and tampering of photos in the above embodiment. The number of the memory 301 and the processor 302 can be one or more.
[0163] The computer device also includes:
[0164] The communication interface 303 is used to communicate with external devices and perform data exchange transmission.
[0165] If the memory 301, the processor 302 and the communication interface 303 are implemented independently, the memory 301, the processor 302 and the communication interface 303 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0166] Optionally, in a specific implementation, if the memory 301, the processor 302 and the communication interface 303 are integrated on a chip, the memory 301, the processor 302 and the communication interface 303 can communicate with each other through an internal interface.
[0167] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the method provided in the embodiment of the present application is implemented.
[0168] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in a memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0169] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0170] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0171] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).
[0172] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0173] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0174] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0175] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0176] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0177] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0178] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0179] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method to prevent wrong transmission and tampering of photos. It is characterized in that Applied to a mobile terminal, the mobile terminal having a target APP installed therein, the method comprising: Obtaining an operation and maintenance task work order of an ambient air quality monitoring site through the target APP, wherein the operation and maintenance task work order includes unique coding information and first positioning information of the ambient air quality monitoring site; Acquire second positioning information of the location of the mobile terminal; When verifying that the distance difference between the first positioning information and the second positioning information is within a preset distance threshold range, enabling the photo collection function of the target APP; Collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP; Performing hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value; Generate an encrypted ciphertext using an encryption algorithm based on the unique encoding information and the first photo hash value; Adding the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo; The on-site operation and maintenance encrypted photos are uploaded to the operation and maintenance platform through the target APP.
2. The method according to claim 1, It is characterized in that The method further comprises: When it is verified that the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold range, the photo collection function is prohibited from being enabled.
3. The method according to claim 1, It is characterized in that The photo collection function is embedded in the operation and maintenance task work order in the form of a component.
4. The method according to claim 1, It is characterized in that The on-site operation and maintenance photos of the ambient air quality monitoring site collected and generated by the target APP include: Collecting on-site photos of the ambient air quality monitoring site through the target APP; Acquire the acquisition time information of the on-site photo, the unique coding information of the ambient air quality monitoring site, and the first positioning information; The on-site operation and maintenance photo is generated by adopting a watermark embedding method according to the on-site photo, the acquisition time information, the unique coding information and the first positioning information.
5. The method according to any one of claims 1 to 4, It is characterized in that Using an encryption algorithm, generating an encrypted ciphertext according to the unique coding information and the first photo hash value includes: Constructing a photo string in the form of the unique coding information + the first photo hash value; The photo character string is encrypted using the encryption algorithm to generate the encrypted ciphertext.
6. The method according to claim 5, It is characterized in that The method further comprises: Before uploading the encrypted photos of on-site operation and maintenance to the operation and maintenance platform, obtaining attribute information of the encrypted photos of on-site operation and maintenance; Decrypting the encrypted ciphertext in the attribute information using a decryption algorithm to obtain a decrypted plaintext; Calculate a second photo hash value of the on-site operation and maintenance encrypted photo; Obtain the unique coding information, and determine the character length N of the unique coding information; When it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo is not mistransmitted or tampered with, and the on-site operation and maintenance encrypted photo is uploaded to the operation and maintenance platform through the target APP.
7. The method according to claim 6, It is characterized in that The method further comprises: When it is determined that the first N characters in the decrypted plaintext do not match the unique coding information, and / or when the N+1th character to the last character in the decrypted plaintext do not match the hash value of the second photo, a prompt message is output through the target APP to warn the on-site operation and maintenance that the encrypted photo has been mistransmitted and / or tampered with, and an alarm log is generated and uploaded to the operation and maintenance platform.
8. A system to prevent wrong transmission and tampering of photos. It is characterized in that The system comprises: A task information module, used to obtain an operation and maintenance task work order of an ambient air quality monitoring site through a target APP installed on a mobile terminal, wherein the operation and maintenance task work order includes unique coding information and first positioning information of the ambient air quality monitoring site; A positioning acquisition module, used to obtain second positioning information of the location of the mobile terminal; A use restriction module is used to verify that when the distance difference between the first positioning information and the second positioning information is within a preset distance threshold range, the photo collection function of the target APP is enabled; A photo generation module, used to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP; A hash calculation module, used to perform hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value; An encryption module, used to generate an encrypted ciphertext according to the unique coding information and the first photo hash value using an encryption algorithm; A ciphertext adding module, used to add the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo; The photo uploading module is used to upload the on-site operation and maintenance encrypted photos to the operation and maintenance platform through the target APP.
9. A computer device, It is characterized in that include: A memory and a processor, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Data tamper-proofing method, system and equipment based on base station information and storage medium
CN109818966A
Urban man-machine perception interaction system and method based on big data
CN110287359A
Positioning data monitoring method based on information security and related equipment
CN110324779A
Security authentication method and device, electronic equipment and storage medium
CN118199888A
Picture-based virtual resource transmission method and apparatus, and program product
CN118413347A
