Picture transmission method and device, picture display method and device
By inserting encryption keys, using Base64 encoding, and applying asymmetric encryption to image data, the security and privacy issues during image transmission are resolved, achieving high security and privacy protection for image data during transmission.
Patent Information
- Application Number
- CN202211679144.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-12-26
AI Technical Summary
In existing technologies, image data suffers from insufficient security and privacy during transmission, especially when using third-party image servers or self-built servers, where image data stream information is easily monitored and tampered with.
Image data is encrypted using an image encryption key, which is then inserted into the encryption result. The insertion position data is recorded and Base64 encoded. This data is then combined with encryption interference data and the transmission encryption key for concatenation and asymmetric encryption to generate transmission data. The encryption algorithm name information is also Base64 encoded to ensure data security and privacy.
Encryption and encoding enhance the security and privacy of image transmission, preventing unauthorized personnel from directly viewing image content by eavesdropping or obtaining image access addresses, thus improving the level of image data protection.
Smart Images

Figure CN116155552B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and particularly relates to a picture transmission method and device and a picture display method and device. BACKGROUND
[0002] With the development of Internet technology and the popularity of cloud application deployment, people pay more and more attention to the security and privacy of picture data in the process of browsing and viewing pictures. At present, the picture service mainly uses the third-party picture server or builds its own picture server, and when the user needs to view the picture, the picture is displayed to the user after verifying the user's authority. In this process, the data stream information of the picture is relatively insecure and has the risk of being monitored and tampered. In view of the above problems, no effective solution has been proposed. SUMMARY
[0003] The embodiment of the present application provides a picture transmission method and device and a picture display method and device, so as to at least solve the problem of improving the security of the picture transmission process and the privacy of the data.
[0004] According to an aspect of the embodiment of the present application, a picture transmission method is provided, including: obtaining picture data, a picture encryption key, a transmission encryption key and encrypted interference data; encrypting the picture data by using the picture encryption key to obtain a picture encryption result, inserting the picture encryption key into the picture encryption result to obtain an insertion result, and recording insertion position data; performing base64 encoding on the insertion position data and the encrypted interference data to obtain a processing result; splicing the insertion result and the processing result, encrypting the splicing result by using the transmission encryption key to obtain transmission data; performing base64 encoding on the encryption algorithm name information of the transmission encryption key to obtain an encoding result; and sending the encoding result and the transmission data to a receiving end.
[0005] Optionally, sending the encoding result and the transmission data to the receiving end includes: generating MD5 data of the transmission data; and sending the MD5 data, the encoding result and the transmission data to the receiving end.
[0006] Optionally, before obtaining the picture data, the picture encryption key, the transmission encryption key and the encrypted interference data, the method further includes: obtaining picture identification information and platform identification information of the picture data; generating first interference data based on the picture identification information and second interference data based on the platform identification information; and taking the first interference data and the second interference data as the encrypted interference data of the picture data.
[0007] According to another aspect of the embodiments of the present application, a picture display method is also provided, comprising: obtaining a transmission decryption key; upon receiving an encoding result and transmission data, base64 decoding the encoding result to obtain encryption algorithm name information; using the transmission decryption key and the encryption algorithm name information to decrypt the transmission data to obtain an insertion result and a processing result; base64 decoding the processing result to obtain insertion position data and encryption interference data, extracting a picture encryption key in the insertion result according to the insertion position data to obtain picture encryption result and picture encryption key; using the picture encryption key to decrypt the picture encryption result to obtain picture data; and displaying the picture data.
[0008] Optionally, before decrypting the transmission data, the method further comprises: receiving MD5 data of the transmission data; and using the MD5 data to verify the integrity of the transmission data.
[0009] Optionally, the method further comprises: determining first interference data and second interference data according to the encryption interference data; using the first interference data to determine picture identification information, and using the second interference data to determine platform identification information.
[0010] According to another aspect of the embodiments of the present application, a picture transmission device is also provided, comprising: a data obtaining module, configured to obtain picture data, a picture encryption key, a transmission encryption key and encryption interference data; a first encryption module, configured to encrypt the picture data using the picture encryption key to obtain picture encryption result, insert the picture encryption key into the picture encryption result to obtain an insertion result, and record insertion position data; a first encoding module, configured to base64 encode the insertion position data and the encryption interference data to obtain a processing result; a second encryption module, configured to splice the insertion result and the processing result, and encrypt the spliced result using the transmission encryption key to obtain transmission data; a second encoding module, configured to base64 encode encryption algorithm name information of the transmission encryption key to obtain an encoding result; and a data sending module, configured to send the encoding result and the transmission data to a receiving end.
[0011] According to another aspect of the embodiments of the present application, there is also provided a picture display device, comprising: a key acquisition module, configured to acquire a transmission decryption key; a first decoding module, configured to, when receiving an encoding result and transmission data, decode the encoding result to obtain encryption algorithm name information; a first decryption module, configured to decrypt the transmission data by using the transmission decryption key and the encryption algorithm name information to obtain an insertion result and a processing result; a second decoding module, configured to decode the processing result by base64 to obtain insertion position data and encryption interference data, and extract a picture encryption key in the insertion result according to the insertion position data to obtain picture encryption result and the picture encryption key; a second decryption module, configured to decrypt the picture encryption result by using the picture encryption key to obtain picture data; and a picture display module, configured to display the picture data.
[0012] According to another aspect of the embodiments of the present application, there is also provided an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method steps of any of the above.
[0013] According to another aspect of the embodiments of the present application, there is also provided a non-transitory computer-readable storage medium having computer instructions stored therein, wherein the computer instructions are used to make the computer perform the method steps of the above.
[0014] In the embodiments of the present application, picture data, a picture encryption key, a transmission encryption key and encryption interference data are acquired; the picture data is encrypted by using the picture encryption key to obtain picture encryption result, the picture encryption key is inserted into the picture encryption result to obtain an insertion result, and insertion position data is recorded; the insertion position data and the encryption interference data are encoded by base64 to obtain a processing result; the insertion result and the processing result are spliced, the spliced result is encrypted by using the transmission encryption key to obtain transmission data; encryption algorithm name information of the transmission encryption key is encoded by base64 to obtain an encoding result; and the encoding result and the transmission data are sent to a receiving end. In the embodiments of the present application, the picture data is encrypted, the picture encryption result is spliced with the picture encryption key, and the processing result obtained based on the insertion position data and the encryption interference data is encoded by base64, and then the transmission encryption key is used for encryption processing to obtain the transmission data, so that the picture data does not directly participate in data transmission, and the security and privacy of the picture data in the process of transmitting the picture are improved. BRIEF DESCRIPTION OF DRAWINGS
[0015] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and serve to explain the principles of the application. In the drawings:
[0016] Figure 1 Flow chart of the picture transmission method provided for the embodiment of the present application;
[0017] Figure 2 Flow chart of the picture display method provided for the embodiment of the present application;
[0018] Figure 3 Logical diagram of the picture encryption provided for the embodiment of the present application;
[0019] Figure 4 Logical diagram of the picture decryption provided for the embodiment of the present application;
[0020] Figure 5 Flow chart of the picture encryption transmission provided for the embodiment of the present application;
[0021] Figure 6 Flow chart of the picture decryption display provided for the embodiment of the present application;
[0022] Figure 7 Structural block diagram of the exemplary electronic device provided for the embodiment of the present application;
[0023] Figure 8 Structural block diagram of the picture transmission device provided for the embodiment of the present application;
[0024] Figure 9 Structural block diagram of the picture display device provided for the embodiment of the present application. DETAILED DESCRIPTION
[0025] Embodiments of the present application will be described in more detail by referring to the attached drawings. Although certain embodiments of the present application are shown in the drawings, it is understood that the present application can be implemented in various forms and should not be interpreted as being limited to the embodiments set forth herein, but rather these embodiments are provided so as to more completely and thoroughly understand the present application. It is understood that the drawings and embodiments of the present application are for exemplary purposes only and are not intended to limit the scope of protection of the present application.
[0026] It is understood that each step recited in the method embodiments of the present application can be executed in different order and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the execution of the steps shown. The scope of the present application is not limited in this respect.
[0027] The term "include" and variations thereof as used herein mean "to include, without limitation." The term "based on" means "based at least in part on." The term "one embodiment" means "at least one embodiment." The term "another embodiment" means "at least one additional embodiment." The term "some embodiments" means "at least some embodiments." Related terms shall be construed accordingly. It should be noted that "an embodiment" or "one embodiment" or also "some embodiments" or "another embodiment" can used herein to describe a particular embodiment, wherein only some embodiments can actually be described using such terms. The use of these terms does not, of course, mean that a combination of features should not be claimed. Furthermore, the terms "first", "second", and the like can be used herein to describe different apparatuses, modules, units or units, and do not imply a specific order or a sequence of performing the functions of these apparatuses, modules or units.
[0028] It should be noted that the modification of "one" or "multiple" mentioned in the present application is illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more".
[0029] The names of the messages or information exchanged between the devices in the embodiments of the present application are only for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0030] According to one aspect of an embodiment of the present application, a picture transmission method is provided, which can be applied to a sending end. In order to ensure the security of the picture, the user needs to encrypt the picture before sending it to the corresponding sending end, and send the encrypted picture data to the corresponding receiving end of other users. Figure 1 The flowchart of the picture transmission method provided by the embodiment of the present application is shown in Figure 1 The method comprises the following steps:
[0031] Step S102, obtaining picture data, picture encryption key, transmission encryption key and encrypted interference data;
[0032] In this step, the picture data needs to be transmitted to the receiving end. The picture encryption key is a pre-generated symmetric key, the transmission encryption key is a pre-generated asymmetric secret, and the encrypted interference data is data generated based on specified information in advance. The specified information can be set according to actual needs, and the embodiment of the present application does not make specific limitation.
[0033] Step S104, encrypting the picture data using the picture encryption key to obtain a picture encryption result, inserting the picture encryption key into the picture encryption result to obtain an insertion result, and recording insertion position data;
[0034] In this step, based on the picture encryption key, the picture data is encrypted by using a symmetric encryption algorithm, and the obtained picture encryption result can be a string. It should be noted that the symmetric encryption algorithm can be selected according to actual needs, for example, it can be a 3DES (Triple Data Encryption Standard) algorithm. Since the picture encryption key can also be a string, the picture encryption key is inserted into the picture encryption result to obtain a new string as an insertion result, and the insertion position data of the picture encryption key in the picture encryption result is recorded. Through the insertion operation, the picture encryption key and the picture encryption result are spliced.
[0035] It should be noted that according to the insertion position data, the starting position of the picture encryption key inserted in the picture encryption result can be determined.
[0036] In step S106, the insertion position data and the encryption interference data are base64 encoded to obtain a processing result.
[0037] In this step, Base64 encoding is a process from binary to character, and Base64 encoding has unreadability and needs to be decoded before reading, which ensures the privacy of data. The insertion position data and the encryption interference data are base64 encoded to obtain a string as a processing result.
[0038] In step S108, the insertion result and the processing result are spliced, and the splicing result is encrypted by using the transmission encryption key to obtain transmission data.
[0039] In this step, the insertion result and the processing result are arranged together, and the arrangement result is used as the splicing result. The transmission encryption key is used to encrypt the splicing result by using an asymmetric encryption algorithm to obtain the transmission data. It should be noted that the asymmetric encryption algorithm can be selected according to actual needs, for example, it can be an RSA256 algorithm.
[0040] In step S110, the encryption algorithm name information of the transmission encryption key is base64 encoded to obtain an encoding result.
[0041] In this step, when the transmission encryption key is obtained, the encryption algorithm name information corresponding to the transmission encryption key can be determined. The encryption algorithm name information of the transmission encryption key is base64 encoded to ensure the security of the encryption algorithm name through base64 encoding.
[0042] In step S112, the encoding result and the transmission data are sent to a receiving end.
[0043] In the step, the encoding result and the transmission data are transmitted, so that only the encoding result and the transmission data are obtained, and the picture data cannot be obtained, thereby ensuring the security and privacy of the picture data. In the entire transmission process, the original data of the picture does not directly participate in data transmission, so that the actual content of the picture cannot be directly viewed by listening to or obtaining the address information of the transmitted picture, thereby improving the security and privacy of the original picture in the process of transmitting the picture.
[0044] In the embodiment of the present application, the picture data, the picture encryption key, the transmission encryption key and the encrypted interference data are obtained; the picture data is encrypted by using the picture encryption key to obtain a picture encryption result, the picture encryption key is inserted into the picture encryption result to obtain an insertion result, and insertion position data is recorded; the insertion position data and the encrypted interference data are base64 encoded to obtain a processing result; the insertion result and the processing result are spliced, the spliced result is encrypted by using the transmission encryption key to obtain transmission data; the encryption algorithm name information of the transmission encryption key is base64 encoded to obtain an encoding result; and the encoding result and the transmission data are sent to a receiving end. In the embodiment of the present application, the picture data is encrypted, the picture encryption result is spliced with the picture encryption key, and the processing result obtained by base64 encoding based on the insertion position data and the encrypted interference data is encrypted by using the transmission encryption key, thereby obtaining the transmission data. The picture data does not directly participate in data transmission, and the security and privacy of the picture data in the process of transmitting the picture are improved.
[0045] In an optional embodiment, the encoding result and the transmission data are sent to a receiving end, which can be performed according to the following steps:
[0046] MD5 data of the transmission data is generated; the MD5 data, the encoding result and the transmission data are sent to a receiving end
[0047] In the embodiment of the present application, the MD5 data is data calculated by using a message digest algorithm (Message Digest Algorithm MD5). By generating the MD5 data of the transmission data and sending the MD5 data to a receiving end, the receiving end can perform integrity verification of the transmission data based on the MD5 data.
[0048] In an optional embodiment, before the picture data, the picture encryption key, the transmission encryption key and the encrypted interference data are obtained, the following steps can also be performed:
[0049] Obtaining picture identification information and platform identification information of picture data; generating first interference data based on the picture identification information, and generating second interference data based on the platform identification information; and taking the first interference data and the second interference data as encrypted interference data of the picture data.
[0050] In this step, the picture identification information can be used to uniquely identify the picture data, for example, can be UUID (Universally Unique Identifier) data. The platform identification information can be used to identify the provider of the picture data. The picture identification information is calculated or format-converted to obtain the first interference data, the platform identification information is calculated or format-converted to obtain the second interference data, and the first interference data and the second interference data are spliced to obtain the encrypted interference data of the picture data.
[0051] The implementation of the picture transmission method is described below with one specific embodiment.
[0052] In the process of requesting picture information, the user first requests the data information of the picture from the sending end. However, the sending end does not directly send the original picture data to the user after verifying some basic information of the request, but encrypts the original picture data and transmits the encrypted data information.
[0053] Referring to Figure 3 the picture encryption logic diagram, the sending end encrypts and transmits the picture mainly through several units as shown in Figure 3 to complete the transmission of the encrypted picture data.
[0054] The steps of the encrypted transmission can be seen from Figure 5The picture encryption transmission flowchart is shown. In the implementation, the method for sending end to encrypt the picture comprises: the sending end acquires the original data of the picture, acquires the data information of the interference, acquires the picture encryption key, and acquires the transmission encryption key; the sending end acquires some unique information and some landmark information corresponding to the cloud deployment, such as the unique ID of the picture in the storage system, the user information, and some user-defined information with specific meaning, to generate corresponding specific interference data information, which is added to the original data of the picture through a specific algorithm to generate the data information of the picture to be encrypted; the data information of the picture to be encrypted is encrypted by the picture encryption key, where the symmetric encryption method 3DES can be used to encrypt the picture to be encrypted, the encryption key is randomly inserted into the encrypted string after encryption, the initial insertion position is recorded, and the picture encryption data is generated at the end of the specific identifier, and then the insertion position information is written into the encryption interference information after base64; the picture encryption data is spliced with the picture encryption key and the added interference data, and is encrypted by the transmission encryption key, where the asymmetric encryption RSA256 can be used, and the encryption method is dynamically variable, to generate the transmission data; the transmission data is marked with the header information, is base64 encoded, and can be spliced with the transmission information by using "." to transmit the data in the transmission process. The MD5 data of the transmission data can also be transmitted together with the transmission data to ensure the data integrity.
[0055] According to an aspect of the embodiment of the present application, a picture display method is provided, which can be applied to a receiving end, the receiving end accepts the encrypted picture, and then the receiving end decrypts and displays the encrypted picture through the installed plug-in and the configured information. Figure 2 The flowchart of the picture display method provided by the embodiment of the present application is shown in Figure 2 The method comprises the following steps:
[0056] Step S202, acquiring the transmission decryption key;
[0057] In this step, the receiving end acquires the transmission decryption key in advance through a secure manner. The transmission decryption key and the transmission encryption key used by the sending end are a pair of keys of the asymmetric encryption algorithm.
[0058] Step S204, when the encoded result and the transmission data are received, base64 decoding is performed on the encoded result to obtain the encryption algorithm name information;
[0059] In this step, when the encoded result and the transmission data sent by the sending end are received, the receiving end first performs base64 decoding on the encoded result to obtain the name information of the asymmetric encryption algorithm corresponding to the transmission decryption key. Base64 encoding is a process from binary to character, and the Base64 encoding has unreadability, which needs to be decoded to be read, thereby ensuring the privacy of the data
[0060] Step S206, using the transmission decryption key and the encryption algorithm name information, decrypt the transmission data to obtain the insertion result and the processing result;
[0061] In this step, using the transmission decryption key and the encryption algorithm name information, the transmission data is decrypted to obtain a string including the insertion result and the processing result. The insertion result is obtained by inserting the picture encryption key into the picture encryption result at the sending end, and the processing result is obtained by base64 encoding the insertion position data and the encryption interference data at the sending end. The transmission decryption key mainly ensures the data security and integrity in the transmission process by decrypting the transmission data.
[0062] Step S208, base64 decoding the processing result to obtain the insertion position data and the encryption interference data, and extracting the picture encryption key in the insertion result according to the insertion position data to obtain the picture encryption result and the picture encryption key;
[0063] In this step, the processing result is base64 decoded to obtain a string including the insertion position data and the encryption interference data. According to the insertion position data, the insertion start position of the picture encryption key in the insertion result can be determined, and the picture encryption result and the picture encryption key are separated and stored respectively.
[0064] Step S210, using the picture encryption key to decrypt the picture encryption result to obtain the picture data;
[0065] In this step, since the sending end uses a symmetric encryption algorithm to encrypt the picture data, the picture encryption result can be decrypted by the picture encryption key to obtain the picture data.
[0066] Step S212, displaying the picture data.
[0067] In this step, the receiving end displays the picture data in the display module. During the process of receiving the picture, the picture data does not directly participate in data transmission, which improves the security and privacy of the picture data.
[0068] In this embodiment of the invention, a transmission decryption key is obtained; upon receiving the encoding result and transmission data, the encoding result is base64 decoded to obtain the encryption algorithm name information; using the transmission decryption key and the encryption algorithm name information, the transmission data is decrypted to obtain an insertion result and a processing result; the processing result is base64 decoded to obtain insertion position data and encryption interference data; the image encryption key in the insertion result is extracted based on the insertion position data to obtain the image encryption result and the image encryption key; the image encryption result is decrypted using the image encryption key to obtain image data; and the image data is displayed. This embodiment of the invention allows users to view corresponding images smoothly without their knowledge, and ensures that image data obtained through abnormal channels cannot be directly viewed by other personnel, guaranteeing the security and privacy of the images; it solves the problem that unauthorized personnel can directly view the actual content of images by obtaining image access addresses and simulating some request data and storage information, thus improving the security of image services.
[0069] The following is a specific embodiment illustrating the implementation of this image display method.
[0070] After an image is transmitted to the user via encryption, the user decrypts it on the receiving end through a series of decryption logic steps, then displays the decrypted image. Decryption involves several unit modules, a process automatically detected and handled by a developed plugin, so the user is unaware of the image decryption process. See also... Figure 4 The diagram shown illustrates the image decryption logic, illustrating the logical units that the plugin can use to decrypt images.
[0071] See the flowchart for image decryption demonstration. Figure 6 The diagram shows the image decryption process. In practice, image decryption can involve: receiving transmission data, the image encryption key, and the transmission decryption key from the sender; verifying the integrity of the transmission data using MD5; then, base64 decoding the header information to parse the corresponding encryption method; the receiver first securely obtains the corresponding transmission decryption key, and after receiving the transmission data from the sender, decrypts the data using the decryption key and header parsing to restore the image encryption data, image encryption key, and the algorithm for adding interference data; the receiver uses a specific plugin to decrypt the image encryption data using the image encryption key to obtain the image data to be encrypted; the image data to be encrypted is then reverse-engineered by adding interference characters to remove interference data, restoring the original image data; finally, 3DES decoding can be used to decode the corresponding information, and the data is displayed on the receiver.
[0072] In the picture encryption and decryption process, the encrypted picture data is actually transmitted in the data transmission process, and the data cannot be directly displayed in the form of a picture, so the security of the picture transmission process is improved, and other users cannot directly access the picture resource information by knowing the picture access address.
[0073] According to another aspect of the embodiment of the present application, a picture transmission device is also provided, as shown in the structure block diagram of the picture transmission device, Figure 8 The picture transmission device comprises a data acquisition module 81, a first encryption module 82, a first encoding module 83, a second encryption module 84, a second encoding module 85, and a data sending module 86. The picture transmission device will be described in detail below.
[0074] The data acquisition module is used to acquire picture data, a picture encryption key, a transmission encryption key, and encrypted interference data; the first encryption module is used to encrypt the picture data by using the picture encryption key to obtain a picture encryption result, insert the picture encryption key into the picture encryption result to obtain an insertion result, and record insertion position data; the first encoding module is used to base64 encode the insertion position data and the encrypted interference data to obtain a processing result; the second encryption module is used to splice the insertion result and the processing result, encrypt the spliced result by using the transmission encryption key to obtain transmission data; the second encoding module is used to base64 encode encryption algorithm name information of the transmission encryption key to obtain an encoding result; and the data sending module is used to send the encoding result and the transmission data to a receiving end.
[0075] In the embodiment of the present application, the picture data, the picture encryption key, the transmission encryption key, and the encrypted interference data are acquired; the picture data is encrypted by using the picture encryption key to obtain a picture encryption result, the picture encryption key is inserted into the picture encryption result to obtain an insertion result, and insertion position data is recorded; the insertion position data and the encrypted interference data are base64 encoded to obtain a processing result; the insertion result and the processing result are spliced, the spliced result is encrypted by using the transmission encryption key to obtain transmission data; encryption algorithm name information of the transmission encryption key is base64 encoded to obtain an encoding result; and the encoding result and the transmission data are sent to a receiving end. In the embodiment of the present application, the picture data is encrypted, the picture encryption result is spliced with the picture encryption key, and the processing result obtained by base64 encoding the insertion position data and the encrypted interference data is encrypted by using the transmission encryption key to obtain the transmission data. The picture data does not directly participate in the data transmission, and the security and privacy of the picture data in the picture transmission process are improved.
[0076] It should be noted that the data acquisition module 81, the first encryption module 82, the first encoding module 83, the second encryption module 84, the second encoding module 85 and the data sending module 86 correspond to steps S102 to S112 in the method embodiment, and the above modules have the same examples and application scenarios as the corresponding steps, but are not limited to the disclosure of the above method embodiment.
[0077] In an optional embodiment, the encoding result and the transmission data are sent to the receiving end, including: generating MD5 data of the transmission data; and sending the MD5 data, the encoding result and the transmission data to the receiving end.
[0078] In an optional embodiment, before the picture data, the picture encryption key, the transmission encryption key and the encryption interference data are acquired, the method further includes: acquiring picture identification information and platform identification information of the picture data; generating first interference data based on the picture identification information and second interference data based on the platform identification information; and taking the first interference data and the second interference data as the encryption interference data of the picture data.
[0079] According to another aspect of the embodiment of the present application, there is also provided a picture transmission device, referring to Figure 9 a structure block diagram of a picture display device, the picture display device including: a key acquisition module 91, a first decoding module 92, a first encoding module 93, a second encryption module 94, a second encoding module 95 and a data sending module 96. The picture transmission device will be described in detail below.
[0080] The key acquisition module is configured to acquire a transmission decryption key; the first decoding module is configured to, when receiving an encoding result and transmission data, decode the encoding result by base64 to obtain encryption algorithm name information; the first decryption module is configured to decrypt the transmission data by using the transmission decryption key and the encryption algorithm name information to obtain an insertion result and a processing result; the second decoding module is configured to decode the processing result by base64 to obtain insertion position data and encryption interference data, extract a picture encryption key in the insertion result according to the insertion position data, and obtain a picture encryption result and the picture encryption key; the second decryption module is configured to decrypt the picture encryption result by using the picture encryption key to obtain picture data; and the picture display module is configured to display the picture data.
[0081] In the embodiment of the present application, the transmission decryption key is acquired; when the encoded result and the transmission data are received, the encoded result is base64 decoded to obtain the encryption algorithm name information; the transmission data is decrypted by using the transmission decryption key and the encryption algorithm name information to obtain the insertion result and the processing result; the processing result is base64 decoded to obtain the insertion position data and the encrypted interference data, the picture encryption key in the insertion result is extracted according to the insertion position data to obtain the picture encryption result and the picture encryption key; the picture data is obtained by decrypting the picture encryption result by using the picture encryption key; and the picture data is displayed. The embodiment of the present application can enable the user to smoothly view the corresponding picture in an unconscious state, and ensures that the picture data acquired through an abnormal channel cannot be directly viewed by other personnel, thereby ensuring the security and privacy of the picture; and solves the problem that an illegal person can directly view the actual content of the picture by acquiring the picture access address and simulating some request data and storage information, thereby improving the security of the picture service.
[0082] It should be noted that the key acquisition module 91, the first decoding module 92, the first encoding module 93, the second encryption module 94, the second encoding module 95 and the data sending module 96 correspond to steps S202 to S212 in the method embodiment, and the above modules have the same examples and application scenarios as the corresponding steps, but are not limited to the contents disclosed in the above method embodiment.
[0083] In an optional implementation, before the transmission data is decrypted, the method further includes: receiving MD5 data of the transmission data; and verifying integrity of the transmission data by using the MD5 data.
[0084] In an optional implementation, the method further includes: determining first interference data and second interference data according to the encrypted interference data; determining picture identification information by using the first interference data; and determining platform identification information by using the second interference data.
[0085] The exemplary embodiments of the present application also provide an electronic device, including: at least one processor; and a memory connected with the at least one processor in communication. The memory stores a computer program capable of being executed by the at least one processor, and the computer program is used for causing the electronic device to execute the method according to the embodiments of the present application when executed by the at least one processor.
[0086] The exemplary embodiments of the present application also provide a non-transitory computer readable storage medium storing a computer program, wherein the computer program is used for causing a computer to execute the method according to the embodiments of the present application when executed by a processor of the computer.
[0087] Reference Figure 7The present invention describes a structural block diagram of an electronic device 700 that can serve as a server or client of this application, which is an example of a hardware device that can be applied to various aspects of this application. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the application described and / or claimed herein.
[0088] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. The RAM 703 may also store various programs and data required for the operation of the device 700. The computing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0089] Multiple components in electronic device 700 are connected to I / O interface 705, including: input unit 706, output unit 707, storage unit 708, and communication unit 709. Input unit 706 can be any type of device capable of inputting information to electronic device 700. Input unit 706 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of electronic device. Output unit 707 can be any type of device capable of presenting information and may include, but is not limited to, a display, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 708 may include, but is not limited to, disk and optical disk. Communication unit 709 allows electronic device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.
[0090] The computing unit 701 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs various methods and processes described above. For example, in some embodiments, the above-described grasp point prediction model training method or object grasp point determination method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 700 via the ROM 702 and / or the communication unit 709. In some embodiments, the computing unit 701 can be configured to perform the above-described grasp point prediction model training method or object grasp point determination method by any other suitable means, such as by means of firmware.
[0091] Program code for carrying out methods of the present application can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces a means for implementing the functions / acts specified in the flowcharts and / or block diagrams. The program code can be retrieved from a machine-readable medium or device and executed by a processor or controller to produce a machine for implementing the functions / acts specified in the flowcharts and / or block diagrams.
[0092] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable storage media can include, without limitation, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media can include, but are not limited to, an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0093] As used in this application, the terms "machine-readable medium" and "computer- readable medium" refer to any computer program product, apparatus and / or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0094] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0095] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0096] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
[0097] The above description is only preferred embodiments of the present application, and not intended to limit the protection scope of the present application.
Claims
1. A picture transmission method, characterized by, The method comprises the following steps: obtaining picture identification information and platform identification information of picture data; the picture identification information is used for uniquely identifying the picture data; the platform identification information is used for identifying the provider of the picture data; generating first interference data based on the picture identification information and second interference data based on the platform identification information; the first interference data and the second interference data are used as encrypted interference data of the picture data; obtaining picture data, picture encryption key, transmission encryption key and the encrypted interference data; adding the encrypted interference data to the picture data to generate to-be-encrypted picture data; encrypting the to-be-encrypted picture data by using the picture encryption key to obtain picture encryption result, inserting the picture encryption key into the picture encryption result to obtain insertion result, and recording insertion position data; performing base64 encoding on the insertion position data and the encrypted interference data to obtain processing result; splicing the insertion result and the processing result, encrypting the splicing result by using the transmission encryption key to obtain transmission data; performing base64 encoding on the encryption algorithm name information of the transmission encryption key to obtain encoding result; sending the encoding result and the transmission data to a receiving end.
2. The method of claim 1, wherein, The method of sending the encoding result and the transmission data to a receiving end comprises the following steps: generating MD5 data of the transmission data; sending the MD5 data, the encoding result and the transmission data to the receiving end.
3. A picture display method characterized by, The method comprises the following steps: obtaining a transmission decryption key; when receiving the encoding result and the transmission data, performing base64 decoding on the encoding result to obtain encryption algorithm name information; decrypting the transmission data by using the transmission decryption key and the encryption algorithm name information to obtain insertion result and processing result; performing base64 decoding on the processing result to obtain insertion position data and encrypted interference data, extracting the picture encryption key in the insertion result according to the insertion position data to obtain picture encryption result and picture encryption key; decrypting the picture encryption result by using the picture encryption key to obtain to-be-encrypted picture data; the to-be-encrypted picture data is inserted with interference character information by adding explicit interference data, and the encrypted interference data in the corresponding data is removed reversely to obtain picture data; the encrypted interference data is obtained by the following method: obtaining picture identification information and platform identification information of picture data; the picture identification information is used for uniquely identifying the picture data; the platform identification information is used for identifying the provider of the picture data; generating first interference data based on the picture identification information and second interference data based on the platform identification information; the first interference data and the second interference data are used as encrypted interference data of the picture data; displaying the picture data.
4. The method of claim 3, wherein, Before decrypting the transmission data, the method further comprises the following steps: receiving MD5 data of the transmission data; verifying the integrity of the transmission data by using the MD5 data.
5. The method of claim 3, wherein, The method further comprises the following steps: determining first interference data and second interference data according to the encrypted interference data; Determine picture identification information by using the first interference data, and determine platform identification information by using the second interference data.
6. An image transmission apparatus characterized by comprising: The method comprises the following steps: A data acquisition module is configured to acquire picture identification information and platform identification information of picture data. The picture identification information is used to uniquely identify the picture data. The platform identification information is used to identify the provider of the picture data. First interference data is generated based on the picture identification information, and second interference data is generated based on the platform identification information. The first interference data and the second interference data are used as encryption interference data of the picture data. Then, the picture data, a picture encryption key, a transmission encryption key, and the encryption interference data are acquired. A first encryption module is configured to add the encryption interference data to the picture data to generate to-be-encrypted picture data. The to-be-encrypted picture data is encrypted by using the picture encryption key to obtain picture encryption result, the picture encryption key is inserted into the picture encryption result to obtain an insertion result, and insertion position data is recorded. A first encoding module is configured to encode the insertion position data and the encryption interference data by using base64 to obtain a processing result. A second encryption module is configured to splice the insertion result and the processing result, encrypt the spliced result by using the transmission encryption key to obtain transmission data. A second encoding module is configured to encode the encryption algorithm name information of the transmission encryption key by using base64 to obtain an encoding result.
7. A picture display device, characterized by comprising: A data sending module is configured to send the encoding result and the transmission data to a receiving end. The method comprises the following steps: A key acquisition module is configured to acquire a transmission decryption key. A first decoding module is configured to, when the encoding result and the transmission data are received, decode the encoding result by using base64 to obtain encryption algorithm name information. A first decryption module is configured to decrypt the transmission data by using the transmission decryption key and the encryption algorithm name information to obtain the insertion result and the processing result. A second decoding module is configured to decode the processing result by using base64 to obtain the insertion position data and the encryption interference data, extract the picture encryption key in the insertion result according to the insertion position data to obtain the picture encryption result and the picture encryption key. A second decryption module is configured to decrypt the picture encryption result by using the picture encryption key to obtain to-be-encrypted picture data. The to-be-encrypted picture data is inserted with interference character information by adding explicit interference data, and the encryption interference data in the corresponding data is removed reversely to obtain picture data. The picture identification information is used to uniquely identify the picture data. The platform identification information is used to identify the provider of the picture data. First interference data is generated based on the picture identification information, and second interference data is generated based on the platform identification information.
8. An electronic device, comprising: The first interference data and the second interference data are used as encryption interference data of the picture data. A picture display module is configured to display the picture data. The method comprises the following steps: A processor; A memory for storing processor-executable instructions. The processor is configured to perform the method steps of any one of claims 1 to 2 and / or 3 to 5.
9. A non-transitory computer-readable storage medium having stored thereon computer instructions, wherein, The computer instructions are for causing the computer to perform the method steps of any one of claims 1 to 2 and / or 3 to 5.
Citation Information
Patent Citations
Method and device for picture encryption, and method and device for picture decryption
CN106599698A
Image processor and image processing system
JP2007306413A