Data anti-leakage method, device and system
1. A data anti-leakage method is characterized in that the method is applied to a client; the method comprises the following steps:
acquiring watermark configuration data and public key data;
generating watermark data according to the watermark configuration data;
generating symmetric key data randomly;
encrypting the symmetric secret key data by using the public key data to obtain ciphertext data;
encrypting data to be protected by using the symmetric key data to obtain an encrypted message; the data to be protected comprises the watermark data;
and sending the ciphertext data and the encrypted message to a server so that the server performs service processing according to the ciphertext data and the encrypted message.
2. The method of claim 1, wherein generating watermark data from the watermark configuration data comprises:
constructing a watermark component according to the watermark configuration data;
generating watermark arrangement data according to the watermark component, the container parameters and the display parameters;
and rendering according to the watermark arrangement data to obtain watermark data.
3. The method of claim 1, wherein sending the ciphertext data and the encrypted message to a server comprises:
storing the ciphertext data in a request message;
and sending the request message and the encrypted message to a server.
4. The method of claim 3, wherein after storing the ciphertext data in the request message, further comprising:
encrypting plaintext data in the request message to obtain encrypted information;
and sending the encryption information, the ciphertext data and the encryption message to a server.
5. A data anti-leakage method is characterized in that the method is applied to a server; the method comprises the following steps:
receiving ciphertext data and an encrypted message sent by a client;
decrypting the ciphertext data to obtain symmetric key data;
decrypting the encrypted message by using the symmetric key data to obtain data to be protected; the data to be protected comprises watermark data;
performing service processing according to the data to be protected, and encrypting a service processing result by using the symmetric key data;
and sending the encrypted service processing result to a client so that the client performs service processing according to the encrypted service processing result.
6. The method of claim 5, further comprising:
receiving encryption information;
and acquiring plaintext data in the request message according to the encryption information.
7. The method of claim 5 or 6, further comprising:
determining the data to be protected according to the watermark data;
and determining information of the divulger according to the data to be protected.
8. A data anti-disclosure device is characterized in that the device is applied to a client; the device comprises:
the acquisition module is used for acquiring watermark configuration data and public key data;
the watermark module is used for generating watermark data according to the watermark configuration data;
the key module is used for randomly generating symmetric key data;
the ciphertext module is used for encrypting the symmetric key data by using the public key data to obtain ciphertext data;
the encryption module is used for encrypting data to be protected by using the symmetric key data to obtain an encrypted message; the data to be protected comprises the watermark data;
and the sending module is used for sending the ciphertext data and the encrypted message to a server so that the server performs service processing according to the ciphertext data and the encrypted message.
9. The apparatus according to claim 8, wherein the watermarking module is specifically configured to:
constructing a watermark component according to the watermark configuration data;
generating watermark arrangement data according to the watermark component, the container parameters and the display parameters;
and rendering according to the watermark arrangement data to obtain watermark data.
10. The apparatus of claim 8, wherein the sending module comprises:
the processing unit is used for storing the ciphertext data in a request message;
and the data unit is used for sending the request message and the encrypted message to a server.
11. The apparatus according to claim 10, wherein the processing unit is specifically configured to:
encrypting plaintext data in the request message to obtain encrypted information;
and sending the encryption information, the ciphertext data and the encryption message to a server.
12. A data anti-disclosure device is characterized in that the device is applied to a server; the device comprises:
the receiving module is used for receiving the ciphertext data and the encrypted message sent by the client;
the data module is used for decrypting the ciphertext data to obtain symmetric key data;
the decryption module is used for decrypting the encrypted message by using the symmetric key data to obtain data to be protected; the data to be protected comprises watermark data;
the service module is used for carrying out service processing according to the data to be protected and encrypting a service processing result by using the symmetric key data;
and the result module is used for sending the encrypted service processing result to the client so that the client performs service processing according to the encrypted service processing result.
13. The apparatus of claim 12, further comprising a plaintext module to:
receiving encryption information;
and acquiring plaintext data in the request message according to the encryption information.
14. The apparatus of claim 12 or 13, further comprising an anti-compromise module for:
determining the data to be protected according to the watermark data;
and determining information of the divulger according to the data to be protected.
15. A data anti-disclosure system is characterized by comprising a client and a server, wherein the client is in communication connection with the server;
the client comprises the data anti-disclosure device of any one of claims 8-11;
the server comprises the data anti-leakage device of any one of claims 12 to 14.
16. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data leakage prevention method according to any one of claims 1 to 7 when executing the computer program.
17. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the data leakage prevention method according to any one of claims 1 to 7.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
For some applications which only take a small part of the user internal test for some factors, the measures for protecting the interfaces of the applications and the data from being leaked are very important, so that developers need to encrypt the interfaces or the data to some extent.
At present, in the process of user trial for a security application, a terminal often needs to be prevented from being exposed to the outside by shooting and recording some application interfaces by a client, and has a potential safety hazard of carrying out simulation attack on some back-end data through front-end interaction.
Disclosure of Invention
The invention provides a data leakage prevention method, device and system, which can prevent leakage and facilitate tracing after leakage according to watermark information.
In a first aspect, an embodiment of the present invention provides a data leakage prevention method, where the method is applied to a client, and the method includes:
acquiring watermark configuration data and public key data; generating watermark data according to the watermark configuration data; generating symmetric key data randomly; encrypting the symmetric secret key data by using the public key data to obtain ciphertext data; encrypting data to be protected by using the symmetric key data to obtain an encrypted message; the data to be protected comprises the watermark data; and sending the ciphertext data and the encrypted message to a server so that the server performs service processing according to the ciphertext data and the encrypted message.
In a second aspect, an embodiment of the present invention further provides a data leakage prevention method, where the method is applied to a server, and the method includes:
receiving ciphertext data and an encrypted message sent by a client; decrypting the ciphertext data to obtain symmetric key data; decrypting the encrypted message by using the symmetric key data to obtain data to be protected; the data to be protected comprises watermark data; performing service processing according to the data to be protected, and encrypting a service processing result by using the symmetric key data; and sending the encrypted service processing result to a client so that the client performs service processing according to the encrypted service processing result.
In a third aspect, an embodiment of the present invention provides a data leakage prevention device, where the device is applied to a client, and the device includes:
the acquisition module is used for acquiring watermark configuration data and public key data; the watermark module is used for generating watermark data according to the watermark configuration data; the key module is used for randomly generating symmetric key data; the ciphertext module is used for encrypting the symmetric key data by using the public key data to obtain ciphertext data; the encryption module is used for encrypting data to be protected by using the symmetric key data to obtain an encrypted message; the data to be protected comprises the watermark data; and the sending module is used for sending the ciphertext data and the encrypted message to a server so that the server performs service processing according to the ciphertext data and the encrypted message.
In a fourth aspect, an embodiment of the present invention provides a data leakage prevention method, where the apparatus is applied to a server, and the apparatus includes:
the receiving module is used for receiving the ciphertext data and the encrypted message sent by the client; the acquisition module is used for decrypting the ciphertext data to obtain symmetric key data; the decryption module is used for decrypting the encrypted message by using the symmetric key data to obtain data to be protected; the data to be protected comprises watermark data; the service module is used for carrying out service processing according to the data to be protected and encrypting a service processing result by using the symmetric key data; and the result module is used for sending the encrypted service processing result to the client so that the client performs service processing according to the encrypted service processing result.
In a fifth aspect, an embodiment of the present invention provides a data leakage prevention system, where the system includes: the client is in communication connection with the server; the client comprises any one of the data anti-leakage devices applied to the client; the server comprises any data anti-leakage device applied to the server.
In a sixth aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the data leakage prevention method when executing the computer program.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the data anti-leakage method is stored in the computer-readable storage medium.
The embodiment of the invention has the following beneficial effects: the embodiment of the invention provides a data leakage prevention scheme, which comprises the following steps: acquiring watermark configuration data and public key data; generating watermark data according to the watermark configuration data; generating symmetric key data randomly; encrypting the symmetric secret key data by using the public key data to obtain ciphertext data; encrypting data to be protected by using symmetric key data to obtain an encrypted message; the data to be protected comprises watermark data; and sending the ciphertext data and the encrypted message to the server so that the server performs service processing according to the ciphertext data and the encrypted message. The dynamic watermark provided by the embodiment of the invention can flexibly display content according to business requirements, and encrypt the symmetric secret key generated randomly by using public key data so as to protect data to be protected and watermark data.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a data leakage prevention method applied to a client according to an embodiment of the present invention;
fig. 2 is a flowchart of a data leakage prevention method applied to a server according to an embodiment of the present invention;
FIG. 3 is a schematic view of the overall operation flow provided by the embodiment of the present invention;
fig. 4 is a schematic view watermark generation flow chart provided in an embodiment of the present invention;
fig. 5 is a block diagram of a data leakage prevention apparatus applied to a client according to an embodiment of the present invention;
fig. 6 is a block diagram of a data anti-disclosure device applied to a server according to an embodiment of the present invention;
fig. 7 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, the confidentiality technology in the front-end aspect in the industry has a very short board, some enterprises have the problems of poor universality, incapability of universal application and the like even if the enterprises have self-research schemes, the capability of a front-end developer in this aspect is always to be improved, and the targeted development is time-consuming and labor-consuming.
Based on this, according to the data leakage prevention method, device and system provided by the embodiment of the invention, in the aspect of interface leakage prevention, the dynamic watermark provided by the scheme can flexibly display the content according to the service requirement; in the aspect of data leakage prevention, the data can be configured with watermark information as an encryption code mark according to the project system. The scheme provided by the invention can give consideration to the advantages of code burying and non-burying, and provides a more flexible information collection means for users.
For the convenience of understanding the embodiment, a detailed description will be first given of a data leakage prevention method disclosed in the embodiment of the present invention.
An embodiment of the present invention provides a data leakage prevention method, referring to a flow chart of the data leakage prevention method applied to a client shown in fig. 1, the method includes the following steps:
step S102, watermark configuration data and public key data are obtained.
In the embodiment of the present invention, the watermark configuration data includes the content, shape, position, style, occurrence time, and other relevant parameters of the interface display watermark. The watermark configuration data and the public key data may be read from the backend interface during an application initialization phase. The public key data may be generated in advance.
And step S104, generating watermark data according to the watermark configuration data.
In an embodiment of the present invention, the watermark data may be used for display at the interface. And calculating the arrangement number of the watermarks in the container, and placing the watermark model in a global component for rendering. The watermark data can be dynamic watermark data, and the content can be flexibly displayed according to the service requirement.
In step S106, symmetric key data is randomly generated.
In an embodiment of the invention, the symmetric key data may be a SM4 type key data.
Step S108, the symmetric key data is encrypted by the public key data to obtain ciphertext data.
In the embodiment of the invention, public key data is used as an encryption factor, and AES asymmetric encryption is carried out on symmetric key data to generate ciphertext data.
Step S110, encrypt the data to be protected by using the symmetric key data to obtain an encrypted message.
In an embodiment of the invention, the data to be protected comprises watermark data. Watermark information can be added as an encryption code mark according to the configuration of the project system, so that the leakage tracing can be performed at a later period.
And step S112, sending the ciphertext data and the encrypted message to the server, so that the server performs service processing according to the ciphertext data and the encrypted message.
In the embodiment of the invention, the client and the server can be in communication connection. And the client sends the ciphertext data and the encrypted message to the server.
The embodiment of the invention provides a data leakage prevention scheme, which comprises the following steps: acquiring watermark configuration data and public key data; generating watermark data according to the watermark configuration data; generating symmetric key data randomly; encrypting the symmetric secret key data by using the public key data to obtain ciphertext data; encrypting data to be protected by using symmetric key data to obtain an encrypted message; the data to be protected comprises watermark data; and sending the ciphertext data and the encrypted message to the server so that the server performs service processing according to the ciphertext data and the encrypted message. The dynamic watermark provided by the embodiment of the invention can flexibly display content according to business requirements, and encrypt the symmetric secret key generated randomly by using public key data so as to protect data to be protected and watermark data.
In one embodiment, generating watermark data based on the watermark configuration data may be performed as follows:
constructing a watermark component according to the watermark configuration data; generating watermark arrangement data according to the watermark component, the container parameter and the display parameter; and rendering according to the watermark arrangement data to obtain watermark data.
In the embodiment of the present invention, the container refers to the size of an area of the interface for displaying the watermark data, and may be, for example, a full screen of the interface or a partial area of the interface. And the container parameter is used for determining the display area of the container. The display parameters can be set according to actual requirements for determining the display effect.
Referring to the flow of the dynamic watermark overlay view on the interface shown in fig. 4, when a page is loaded for the first time, the interface constructs a watermark component of a unit according to data acquired from the back end; then, calculating horizontal and longitudinal watermark data in the view according to the length and the width of the required container, the unit size of the watermark component rendered at this time and the inclination angle; then rendering is carried out in the container according to the arrangement number; and finally, mounting the rendered whole watermark container on the view.
It should be noted that spatial attributes (size, color, font, thickness, position, gradient, etc.) associated with the watermark itself can be customized by the user.
In one embodiment, sending the ciphertext data and the encrypted message to the server may be performed according to the following steps:
storing the ciphertext data in the request message; and sending the request message and the encrypted message to a server.
In the embodiment of the invention, the ciphertext data can be arranged at the head position of the request message, and the encrypted message and the request message carrying the ciphertext data are sent to the server side.
In one embodiment, after the ciphertext data is stored in the request message, the following steps may be further performed:
encrypting plaintext data in the request message to obtain encrypted information; and sending the encrypted information, the ciphertext data and the encrypted message to a server.
In the embodiment of the present invention, to avoid tampering, the plaintext data in the request message may be encrypted by MD5 before the request of the front end, and then transmitted together with the header of the request message, so that the service end performs MD5 encryption on the decrypted message for comparison, thereby further ensuring the security of the information.
An embodiment of the present invention provides a data leakage prevention method, which is described in a flowchart of a data leakage prevention method applied to a server shown in fig. 2, and the method includes the following steps:
step S202, receiving the ciphertext data and the encrypted message sent by the client.
Step S204, decrypting the ciphertext data to obtain symmetric key data.
Step S206, decrypting the encrypted message by using the symmetric key data to obtain the data to be protected.
In an embodiment of the invention, the data to be protected comprises watermark data.
Step S208, the service processing is performed according to the data to be protected, and the service processing result is encrypted by using the symmetric key data.
Step S210, sending the encrypted service processing result to the client, so that the client performs service processing according to the encrypted service processing result.
In one embodiment, the method may further perform the steps of:
receiving encryption information; and acquiring the plaintext data in the request message according to the encrypted information.
In one embodiment, the method may further perform the steps of:
determining data to be protected according to the watermark data; and determining information of the divulger according to the data to be protected.
Referring to the overall operational flow diagram shown in fig. 3, the implementation of this embodiment will now be described in one embodiment.
Reading configuration data from a rear-end interface in an application initialization stage, and inputting relevant parameters such as content, shape, position, style, appearance opportunity and the like of an interface display watermark into a watermark class model to create;
calculating the arrangement number of the watermarks in the container, and placing the watermark model in a global component for rendering;
the front end randomly generates a symmetric key (M1) of the SM4, and performs AES asymmetric encryption on the SM4 public key by taking the SM2 public key (M2) obtained in the step S101 as an encryption factor to generate a ciphertext (A1);
the key A1 generated in the third step is put in the Header of the front-end request body and the request message body is encrypted by using M1, and the key A1 is transmitted to the back end;
the back end receives the message Body requested by the front end this time, decrypts A1 in the Header to obtain M1, and further decrypts the Body message Body, so that a conventional business process is performed, and encrypted data are returned;
the front end receives the returned message body and directly decrypts the message body by using M1.
Meanwhile, in order to avoid tampering, the plaintext body is encrypted by MD5 before the front end requests, and transmitted together with the request head, and the decrypted body is encrypted by MD5 by the back end for comparison.
The invention is composed of a server and a client, wherein the server provides data required to be configured for the front end, including public and private keys of a certain encryption link and watermark related information configurable at the back end. In the application initialization stage, the server side sends the background configuration data to the front end, and the front end performs storage and interface watermark initialization according to the background configuration data, so that the watermarks are ensured to be uniformly covered in the visible view range of a user; in the front-end and back-end data interaction, data are encrypted by combining watermark information, so that encrypted ciphertext has identification property while the encryption effect is ensured. Such a process is repeated continuously in each interaction, and it is ensured that the front end and the back end can encrypt and decrypt continuously.
The invention provides a data anti-leakage method, a device and a system, which can be used for preventing some leakage behaviors from two aspects of user views and service data, and developers can finely design watermarks according to service scene needs and interface aesthetic needs to achieve the effect of making guests and owners happy. Compared with the existing scheme, the scheme has the characteristics of effectively preventing divulgence, makes relevant preparation for tracing after divulgence, can trace each interface and each section of data according to the root origin of the watermark, quickly positions the divulgence and greatly enhances the application safety.
The embodiment of the invention also provides a data leakage prevention device applied to the client, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to that of the data anti-leakage method applied to the client, the implementation of the device can refer to the implementation of the data anti-leakage method applied to the client, and repeated parts are not described again. Referring to fig. 5, a block diagram of a data anti-disclosure apparatus applied to a client is shown, the apparatus including:
an obtaining module 51, configured to obtain watermark configuration data and public key data; a watermark module 52, configured to generate watermark data according to the watermark configuration data; a key module 53, configured to randomly generate symmetric key data; the ciphertext module 54 is configured to encrypt the symmetric key data by using the public key data to obtain ciphertext data; the encryption module 55 is configured to encrypt data to be protected by using symmetric key data to obtain an encrypted message; the data to be protected comprises watermark data 6; and the sending module 56 is configured to send the ciphertext data and the encrypted message to the server, so that the server performs service processing according to the ciphertext data and the encrypted message.
In one embodiment, the watermarking module is specifically configured to: constructing a watermark component according to the watermark configuration data; generating watermark arrangement data according to the watermark component, the container parameter and the display parameter; and rendering according to the watermark arrangement data to obtain watermark data.
In one embodiment, the sending module includes: the processing unit is used for storing the ciphertext data in the request message; and the data unit is used for sending the request message and the encrypted message to the server.
In an embodiment, the processing unit is specifically configured to: encrypting plaintext data in the request message to obtain encrypted information; and sending the encrypted information, the ciphertext data and the encrypted message to a server.
The embodiment of the invention also provides a data leakage prevention device applied to the server side, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to that of the data anti-leakage method applied to the server side, the implementation of the device can refer to the implementation of the data anti-leakage method applied to the server side, and repeated parts are not described again. Referring to fig. 6, a block diagram of a data anti-disclosure apparatus applied to a server side is shown, the apparatus includes:
the receiving module 61 is used for receiving the ciphertext data and the encrypted message sent by the client; the data module 62 is configured to decrypt the ciphertext data to obtain symmetric key data; the decryption module 63 is configured to decrypt the encrypted packet by using the symmetric key data to obtain data to be protected; the data to be protected comprises watermark data; the service module 64 is configured to perform service processing according to the data to be protected, and encrypt a service processing result by using symmetric key data; and a result module 65, configured to send the encrypted service processing result to the client, so that the client performs service processing according to the encrypted service processing result.
In one embodiment, the apparatus further comprises a plaintext module to: receiving encryption information; and acquiring the plaintext data in the request message according to the encrypted information.
In one embodiment, the system further comprises an anti-disclosure module for: determining data to be protected according to the watermark data; and determining information of the divulger according to the data to be protected.
The embodiment of the invention also provides a data leakage prevention system which comprises a client and a server, wherein the client is in communication connection with the server; the client comprises any data anti-leakage device applied to the client; the server comprises any data anti-leakage device applied to the server.
Based on the same inventive concept, the embodiment of the present invention further provides an embodiment of an electronic device for implementing all or part of the contents in the above data anti-disclosure method. The electronic device specifically comprises the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between related devices; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the embodiment for implementing the data leakage prevention method and the embodiment for implementing the data leakage prevention apparatus in the embodiments, and the contents thereof are incorporated herein, and repeated details are not repeated.
Fig. 7 is a schematic diagram of a system configuration structure of an electronic device according to an embodiment of the present invention. As shown in fig. 7, the electronic device 70 may include a processor 701 and a memory 702; a memory 702 is coupled to the processor 701. Notably, this fig. 7 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the functions performed by the data anti-compromise method may be integrated into the processor 701. Wherein, the processor 701 may be configured to control as follows:
acquiring watermark configuration data and public key data; generating watermark data according to the watermark configuration data; generating symmetric key data randomly; encrypting the symmetric secret key data by using the public key data to obtain ciphertext data; encrypting data to be protected by using symmetric key data to obtain an encrypted message; the data to be protected comprises watermark data; and sending the ciphertext data and the encrypted message to the server so that the server performs service processing according to the ciphertext data and the encrypted message.
As can be seen from the above, the dynamic watermark provided by the electronic device provided in the embodiment of the present invention can flexibly display content according to business requirements, and encrypt the randomly generated symmetric key by using the public key data, so as to protect the data to be protected and the watermark data, thereby preventing disclosure and facilitating tracing after disclosure according to watermark information.
In another embodiment, the data anti-disclosure apparatus may be configured separately from the processor 701, for example, the data anti-disclosure apparatus may be configured as a chip connected to the processor 701, and the function of the data anti-disclosure method is realized by the control of the processor.
As shown in fig. 7, the electronic device 70 may further include: a communication module 703, an input unit 704, an audio processing unit 705, a display 706, and a power supply 707. It is noted that the electronic device 70 does not necessarily include all of the components shown in fig. 7; furthermore, the electronic device 70 may also comprise components not shown in fig. 7, which can be referred to in the prior art.
As shown in fig. 7, the processor 701, which is sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, and the processor 701 receives input and controls the operation of the various components of the electronic device 70.
The memory 702 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the processor 701 may execute the program stored in the memory 702 to realize information storage or processing, or the like.
The input unit 704 provides input to the processor 701. The input unit 704 is, for example, a key or a touch input device. The power supply 707 is used to supply power to the electronic device 70. The display 706 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 702 may be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 702 may also be some other type of device. Memory 702 includes a buffer memory 7021 (sometimes referred to as a buffer). The memory 702 may include an application/function storage portion 7022, the application/function storage portion 7022 being used to store application programs and function programs or procedures for performing operations of the electronic device 70 by the processor 701.
The memory 702 may also include a data store 7023, the data store 7023 being for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 7024 of the memory 702 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging application, address book application, etc.).
The communication module 703 is a transmitter/receiver that transmits and receives signals via the antenna 708. A communication module (transmitter/receiver) 703 is coupled to the processor 701 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 703, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 703 is also coupled to a speaker 709 and a microphone 710 via an audio processing unit 705 to provide audio output via the speaker 709 and receive audio input from the microphone 710 to implement general telecommunication functions. The audio processing unit 705 may include any suitable buffers, decoders, amplifiers and so forth. Additionally, an audio processing unit 705 is also coupled to the processor 701 to enable recording of sound locally through a microphone 710 and to enable playing of locally stored sound through a speaker 709.
An embodiment of the present invention further provides a computer-readable storage medium for implementing all the steps in the data anti-leakage method in the foregoing embodiments, where the computer-readable storage medium stores a computer program, and the computer program implements all the steps in the data anti-leakage method in the foregoing embodiments when being executed by a processor, for example, the processor implements the following steps when executing the computer program:
acquiring watermark configuration data and public key data; generating watermark data according to the watermark configuration data; generating symmetric key data randomly; encrypting the symmetric secret key data by using the public key data to obtain ciphertext data; encrypting data to be protected by using symmetric key data to obtain an encrypted message; the data to be protected comprises watermark data; and sending the ciphertext data and the encrypted message to the server so that the server performs service processing according to the ciphertext data and the encrypted message.
As can be seen from the above, the dynamic watermark provided by the computer-readable storage medium provided in the embodiment of the present invention can flexibly display content according to business requirements, and encrypt the randomly generated symmetric key by using public key data, so as to protect the data to be protected and the watermark data.
Although the present invention provides method steps as described in the examples or flowcharts, more or fewer steps may be included based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "upper", "lower", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Each aspect and/or embodiment of the invention can be used alone or in combination with one or more other aspects and/or embodiments.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种实用型可搜索加密安全性检测方法