CN111917555B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN111917555B
CN111917555B CN202010670447.5A CN202010670447A CN111917555B CN 111917555 B CN111917555 B CN 111917555B CN 202010670447 A CN202010670447 A CN 202010670447A CN 111917555 B CN111917555 B CN 111917555B
Authority
CN
China
Prior art keywords
data
encryption
verification
preset
time stamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010670447.5A
Other languages
Chinese (zh)
Other versions
CN111917555A (en
Inventor
缪练
梁志婷
徐浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Minglue Artificial Intelligence Group Co Ltd
Original Assignee
Shanghai Minglue Artificial Intelligence Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Minglue Artificial Intelligence Group Co Ltd filed Critical Shanghai Minglue Artificial Intelligence Group Co Ltd
Priority to CN202010670447.5A priority Critical patent/CN111917555B/en
Publication of CN111917555A publication Critical patent/CN111917555A/en
Application granted granted Critical
Publication of CN111917555B publication Critical patent/CN111917555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3297Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0872Generation of secret information including derivation or calculation of cryptographic keys or passwords using geo-location information, e.g. location data, time, relative position or proximity to other entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN

Abstract

The invention provides a data processing method and a device, wherein the method comprises the following steps: transmitting first uploading request information to a data server, wherein the first uploading request information comprises a device ID (identity) of a current recording device and a time stamp, and the time stamp is a time stamp when the first uploading request is transmitted; receiving verification information issued by the data server according to the equipment ID and the time stamp; and sending the verification information and the audio data to be encrypted, so that the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method has an association relation with the time stamp. The invention solves the problems that the encryption of the audio data is not easy to leak and reduces the pressure of the encryption process on the server, thereby achieving the effects of ensuring the validity of the audio data and reducing the performance consumption of the server caused by the encryption process.

Description

Data processing method and device
Technical Field
The present invention relates to the field of data processing, and in particular, to a data processing method and apparatus.
Background
In an online store, in order to monitor and count service conditions of workers, a recording acquisition device is usually provided for each worker, and service dialogs of the workers in working time are acquired in real time.
The storage space of the recording acquisition device is generally smaller, and backup is required regularly, but because of more people and intelligent devices coming and going from off-line stores, other devices can be mistakenly accessed into a channel for carrying out data transmission with the server, so that some useless data are acquired in the server.
In addition, after transmitting the audio data to the server, attention is often paid to security and privacy protection issues of the audio data. After audio data are uniformly packed into files, the files are encrypted by adopting the same encryption method, but users can easily be illegally cracked by others after using the same encryption method for a long time.
Aiming at the problems that the encryption of the audio data is not easy to leak and the pressure of the encryption process on a server in the related technology is reduced, an effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a data processing method and a data processing device, which at least solve the problems that the encryption of audio data is not easy to leak and the pressure of the encryption process on a server in the related technology is reduced.
According to an embodiment of the present invention, there is provided a data processing method including: transmitting first uploading request information to a data server, wherein the first uploading request information comprises a device ID (identity) of a current recording device and a time stamp, and the time stamp is a time stamp when the first uploading request is transmitted; receiving verification information issued by the data server according to the equipment ID and the time stamp; and sending the verification information and the audio data to be encrypted, so that the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method has an association relation with the time stamp.
Optionally, receiving the verification information issued according to the device ID and the timestamp includes: and receiving verification information containing the verification code under the condition that the equipment meets encryption conditions according to the equipment ID and the time period to which the time stamp belongs is determined to correspond to the verification code and the ID of a preset encryption method according to the time stamp.
Optionally, sending the verification information and the data to be encrypted, where the encrypting the data to be encrypted according to the preset encryption method when the verification information passes the verification includes: and sending the check code in the check information and the data to be encrypted according to the received check information containing the check code, so that the data server inquires the preset encryption method according to the ID of the preset encryption method to encrypt the data to be encrypted under the condition that the check code passes the check.
Optionally, the method further comprises: and under the condition of downloading or inquiring the encrypted data, acquiring an ID of a preset decryption method corresponding to the time period to which the time stamp belongs, and decrypting the data.
According to an embodiment of the present invention, there is also provided a data processing method including: receiving first uploading request information sent by current recording equipment, wherein the first uploading request information comprises equipment ID and a time stamp, the time stamp is a time stamp when the first uploading request is sent, and the equipment ID is used for determining that equipment is compliant equipment; the data server determines verification information and a preset encryption method according to the time period of the time stamp; the data server issues the verification information; and encrypting the audio data to be encrypted according to the preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method has an association relation with the time stamp.
Optionally, the determining the verification information and the preset encryption method according to the time period to which the timestamp belongs includes: determining verification information and a preset encryption method in a target time period according to the time period to which the time stamp belongs; encrypting the data to be encrypted according to the preset encryption method under the condition that the verification information passes the verification comprises the following steps: a preset encryption method in the determined target time period under the condition that the verification information passes verification; encrypting the data to be encrypted according to a preset encryption method in the target time period.
Optionally, before receiving the first upload request information, the method further includes: cutting the preset processing time length into a plurality of time periods; randomly generating verification information and an encryption and decryption method according to a plurality of time periods, wherein the encryption and decryption method comprises an encryption method and an ID of the encryption method, and the decryption method and the ID of the decryption method; and storing the verification information and the encryption and decryption method corresponding to each time period in a preset tree structure.
Optionally, the encrypting the data to be encrypted according to the preset encryption method when the verification information passes the verification further includes: receiving a processing request, wherein the processing request comprises downloading or inquiring encrypted data; inquiring a corresponding decryption method in the preset tree structure according to the ID of the decryption method; decrypting the encrypted data according to the decryption method.
According to another embodiment of the present invention, there is provided a data processing apparatus including:
the uploading module is used for sending first uploading request information to the data server, wherein the first uploading request information comprises the equipment ID of the current recording equipment and a time stamp, and the time stamp is the time stamp when the first uploading request is sent;
The first receiving module is used for receiving the verification information issued by the data server according to the equipment ID and the timestamp;
and the sending module is used for sending the verification information and the audio data to be encrypted so that the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method has an association relation with the time stamp.
According to another embodiment of the present invention, there is provided a data processing apparatus including: the second receiving module is used for receiving first uploading request information sent by the current recording device, wherein the first uploading request information comprises a device ID and a time stamp, the time stamp is a time stamp when the first uploading request is sent, and the device ID is used for determining that the device is the device meeting the encryption condition; the determining module is used for determining the verification information and a preset encryption method according to the time period of the time stamp; the issuing module is used for issuing the verification information; the encryption module is used for encrypting the audio data to be encrypted according to the preset encryption method under the condition that the verification information passes the verification, wherein the preset encryption method has an association relation with the time stamp.
According to a further embodiment of the invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, after the first uploading request information is sent to the data server, the verification information sent by the data server according to the equipment ID and the time stamp is received, so that the verification information and the audio data to be encrypted are sent, and the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification. Therefore, the problem that the encryption of the audio data is not easy to leak and the pressure of the encryption process on the server is reduced can be solved, and the effects of ensuring the validity of the audio data and reducing the performance consumption of the server caused by the encryption process are achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the invention;
FIG. 3 is a flow chart of a data processing method according to an embodiment of the invention;
FIG. 4 is a block diagram of a data processing arrangement according to an embodiment of the invention;
FIG. 5 is a block diagram of a data processing arrangement according to an embodiment of the invention;
fig. 6 is a flow chart of a data processing method according to an alternative embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
Example 1
The method embodiment provided in the first embodiment of the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal of a data processing method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a data processing method in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of networks described above may include wireless networks provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a data processing method running on the mobile terminal or the network architecture is provided, and fig. 2 is a flowchart of the data processing method according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, first uploading request information is sent to a data server, wherein the first uploading request information comprises a device ID of a current recording device and a time stamp, and the time stamp is a time stamp when the first uploading request is sent;
step S204, receiving verification information issued by the data server according to the equipment ID and the time stamp;
Step S206, the verification information and the audio data to be encrypted are sent, so that the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method has an association relation with the time stamp.
Through the steps, after the first uploading request information is sent to the data server, the data server receives the verification information sent by the data server according to the equipment ID and the timestamp, so that the verification information and the audio data to be encrypted are sent, and the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification. Therefore, the problem that the encryption of the audio data is not easy to leak and the pressure of the encryption process on the server is reduced can be solved, and the effects of ensuring the validity of the audio data and reducing the performance consumption of the server caused by the encryption process are achieved.
And in the step S202, sending first uploading request information to a data server through the current recording device. It should be noted that the first upload request information includes a device ID of the current recording device and a timestamp, that is, the timestamp is a timestamp when the first upload request is sent.
Specifically, the current recording device may have its own device ID, which is carried along with the current timestamp when the current recording device sends the upload demand.
And in the step S204, the verification information issued by the data server according to the equipment ID and the timestamp is received through the current recording equipment.
Specifically, after the recording device acquires the check code, the audio data file and the received check code are together transmitted to the server.
In step S206, the verification information and the audio data to be encrypted are sent through the current recording device, so that the data server encrypts the audio data to be encrypted according to a preset encryption method when the verification information passes the verification. Because the preset encryption method has an association relation with the time stamp, each time stamp corresponds to a preset encryption method, and the encryption methods can be generated in advance through a data server.
Specifically, the data server checks the uploaded audio data file by extracting the check code, and after the check codes are consistent, the data server queries an ID interface of the uploaded audio data file according to the corresponding encryption algorithm ID, so that the corresponding encryption algorithm is called to encrypt the audio data file.
As an optional embodiment of the present invention, receiving verification information issued according to the device ID and the timestamp includes: and receiving verification information containing the verification code under the condition that the equipment meets encryption conditions according to the equipment ID and the time period to which the time stamp belongs is determined to correspond to the verification code and the ID of a preset encryption method according to the time stamp.
As an optional embodiment of the present invention, sending the verification information and the data to be encrypted, where the encrypting the data to be encrypted according to the preset encryption method when the verification information passes the verification includes: and sending the check code in the check information and the data to be encrypted according to the received check information containing the check code, so that the data server inquires the preset encryption method according to the ID of the preset encryption method to encrypt the data to be encrypted under the condition that the check code passes the check.
In the implementation, each recording device has its own device ID, the recording device carries its own device ID and current timestamp when sending the uploading demand, the server judges that the device ID is held by the compliance device, and according to the timestamp carried by the recording device in the uploading demand, the server quickly searches the corresponding check code and algorithm ID in the red-black tree data structure according to the time period; and issuing the check code to the recording equipment.
As an alternative embodiment mode of the present invention, the method further includes: and under the condition of downloading or inquiring the encrypted data, acquiring an ID of a preset decryption method corresponding to the time period to which the time stamp belongs, and decrypting the data.
When the method is implemented, when a user needs to download or inquire the encrypted audio data file, the user confirms that the corresponding decryption algorithm ID is acquired from the server in the uploading time period and inquires the ID interface of the server, so that the corresponding decryption algorithm is invoked to decrypt the audio data file.
FIG. 3 is a flow chart of a data processing method according to an embodiment of the present invention, as shown in FIG. 3, the flow including the steps of:
step S302, a data server receives first uploading request information sent by current recording equipment, wherein the first uploading request information comprises equipment ID and a time stamp, the time stamp is a time stamp when the first uploading request is sent, and the equipment ID is used for determining that equipment is equipment meeting encryption conditions;
step S304, the data server determines verification information and a preset encryption method according to the time period to which the time stamp belongs;
step S306, the data server issues the verification information;
Step S308, encrypting the audio data to be encrypted according to the preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method has an association relation with the time stamp.
And in the step S302, the data server receives the uploading request information sent by the current recording device. Because the first uploading request information includes the device ID and the timestamp, the recording device needs to send an uploading encryption request to the server before uploading the data.
In the step S304, the data server determines the verification information and the preset encryption method according to the time period to which the time stamp belongs.
Specifically, a generation module is arranged in the data server, the generation module generates random check codes according to time periods, each time period corresponds to one random check code, each time period corresponds to one set of encryption and decryption algorithm, namely, one set of encryption and decryption algorithm is randomly selected from a plurality of sets of preset encryption and decryption algorithms, and corresponding equipment ID is obtained. For example, a time period may be provided every 5 minutes, each time period corresponding to a random check code and a set of encryption and decryption algorithms.
In step S306, the data server may issue the verification information according to an upload request of the recording device. The verification information comprises verification codes, preset encryption algorithms, equipment IDs and the like.
In the step S308, the audio data to be encrypted is encrypted according to the preset encryption method if the verification information passes the verification on the recording device.
As an optional embodiment of the present invention, the determining the verification information and the preset encryption method according to the time period to which the timestamp belongs includes: determining verification information and a preset encryption method in a target time period according to the time period to which the time stamp belongs; encrypting the data to be encrypted according to the preset encryption method under the condition that the verification information passes the verification comprises the following steps: a preset encryption method in the determined target time period under the condition that the verification information passes verification; encrypting the data to be encrypted according to a preset encryption method in the target time period.
Specifically, various check codes, various encryption and decryption modes are provided in embodiments of the present invention. Each time corresponds to a check code and an encryption and decryption algorithm is randomly used in the data server according to the time period cut in the history record every day. The check code for each time of day is typically generated in advance and the corresponding algorithm ID is randomly acquired.
Preferably, the check code, the encryption algorithm ID, the decryption algorithm ID of each period of time may be loaded in the program of the server in a red-black tree manner. Verification of the verification code between the recording device and the data server supports a quick query decryption algorithm and the generated verification code through a storage structure of the red-black tree.
As an optional embodiment of the present invention, before receiving the first upload request information, the method specifically further includes: cutting the preset processing time length into a plurality of time periods; randomly generating verification information and an encryption and decryption method according to a plurality of time periods, wherein the encryption and decryption method comprises an encryption method and an ID of the encryption method, and the decryption method and the ID of the decryption method; and storing the verification information and the encryption and decryption method corresponding to each time period in a preset tree structure.
In specific implementation, cutting a preset processing time length into a plurality of time periods; and randomly generating verification information and an encryption and decryption method according to a plurality of time periods. The encryption and decryption method includes an encryption method, an ID of the encryption method, a decryption method, and an ID of the decryption method. And storing the verification information and the encryption and decryption method corresponding to each time period in the red-black tree. The memory data storage format of the red black tree is adopted, and encryption, decryption methods and check codes used in a certain time period can be quickly found no matter how short the time end is cut.
As an optional embodiment of the present invention, after the encrypting the data to be encrypted according to the preset encryption method when the verification information passes the verification, the method further includes: receiving a processing request, wherein the processing request comprises downloading or inquiring encrypted data; inquiring a corresponding decryption method in the preset tree structure according to the ID of the decryption method; decrypting the encrypted data according to the decryption method.
In the implementation, a request for downloading or inquiring the encrypted audio data is received at the data server, the corresponding decryption method is inquired in the red-black tree according to the ID of the preset decryption method, and the encrypted audio data is decrypted according to the corresponding decryption method.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Example 2
In this embodiment, a data processing device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 4 is a block diagram of a data processing apparatus according to an embodiment of the present invention, as shown in FIG. 4, including:
an upload module 30, configured to send first upload request information to a data server, where the first upload request information includes a device ID of a current recording device and a timestamp, where the timestamp is a timestamp when the first upload request is sent;
a first receiving module 32, configured to receive verification information issued by the data server according to the device ID and the timestamp;
and the sending module 34 is configured to send the verification information and the audio data to be encrypted, so that the data server performs encryption processing on the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification, where the preset encryption method has an association relationship with the timestamp.
And in the uploading module 30, sending first uploading request information to a data server through the current recording device. It should be noted that the first upload request information includes a device ID of the current recording device and a timestamp, that is, the timestamp is a timestamp when the first upload request is sent.
Specifically, the current recording device may have its own device ID, which is carried along with the current timestamp when the current recording device sends the upload demand.
And the first receiving module 32 receives the verification information issued by the data server according to the device ID and the timestamp through the current recording device.
Specifically, after the recording device acquires the check code, the audio data file and the received check code are together transmitted to the server.
And the sending module 34 sends the verification information and the audio data to be encrypted through the current recording device, so that the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification. Because the preset encryption method has an association relation with the time stamp, each time stamp corresponds to a preset encryption method, and the encryption methods can be generated in advance through a data server.
Specifically, the data server checks the uploaded audio data file by extracting the check code, and after the check codes are consistent, the data server queries an ID interface of the uploaded audio data file according to the corresponding encryption algorithm ID, so that the corresponding encryption algorithm is called to encrypt the audio data file.
The first receiving module 32 is further configured to receive verification information including the verification code when it is determined that the device meets an encryption condition according to the device ID, and it is determined that a time period to which the time stamp belongs corresponds to the verification code and an ID of a preset encryption method according to the time stamp.
The sending module 34 is further configured to send, according to the received check information including the check code, the check code in the check information and the data to be encrypted, so that the data server queries the preset encryption method according to the ID of the preset encryption method to encrypt the data to be encrypted when the check code passes the check.
FIG. 5 is a block diagram of a data processing apparatus according to an embodiment of the present invention, as shown in FIG. 4, including:
the second receiving module 50 is configured to receive first upload request information sent by a current recording device, where the first upload request information includes a device ID and a timestamp, where the timestamp is a timestamp when the first upload request is sent, and the device ID is used to determine that a device is a device that meets an encryption condition;
A determining module 52, configured to determine the verification information and a preset encryption method according to a time period to which the timestamp belongs;
a transmitting module 54, configured to transmit the verification information;
and an encryption module 56, configured to encrypt the audio data to be encrypted according to the preset encryption method when the verification information passes the verification, where the preset encryption method has an association relationship with the timestamp.
And receiving the uploading request information sent by the current recording device at a data server in the second receiving module 50. Because the first uploading request information includes the device ID and the timestamp, the recording device needs to send an uploading encryption request to the server before uploading the data.
In the determination module 52, the verification information and a predetermined encryption method are determined in the data server according to the time period to which the time stamp belongs.
Specifically, a generation module is arranged in the data server, the generation module generates random check codes according to time periods, each time period corresponds to one random check code, each time period corresponds to one set of encryption and decryption algorithm, namely, one set of encryption and decryption algorithm is randomly selected from a plurality of sets of preset encryption and decryption algorithms, and corresponding equipment ID is obtained. For example, a time period may be provided every 5 minutes, each time period corresponding to a random check code and a set of encryption and decryption algorithms.
The data server in the issuing module 54 issues the verification information according to the uploading request of the recording device. The verification information comprises verification codes, preset encryption algorithms, equipment IDs and the like.
The encryption module 56 encrypts the audio data to be encrypted according to the preset encryption method in case the verification information passes the verification on the recording device.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
In order to better understand the flow of the data processing method, the following description is given with reference to the preferred embodiment, but the technical solution of the embodiment of the present invention is not limited thereto.
The method of the preferred embodiment of the invention generates the check code in advance in the data server to reduce the stress of the server. The difficulty of cracking the verification code is increased in the data server because the encryption algorithm of the time period is adopted and the encryption algorithm is replaced randomly every day. In addition, the memory data storage format of the red black tree in the data server can quickly find the encryption, decryption method and check code used in a certain time period no matter how short the time end is cut.
As shown in fig. 6, a flowchart of a data processing method according to an embodiment of the present application includes the steps of:
first, the data server performs segmentation at regular time intervals on a daily basis. Specifically, each day corresponds to a check code according to the time period cut before, and an encryption and decryption algorithm is randomly used. The server is provided with a plurality of sets of encryption and decryption algorithms in advance, each set of encryption and decryption algorithm has a respective ID interface, and the encryption algorithm/decryption algorithm can be directly called by inquiring the ID interface.
Preferably, the check code for each time of day may be generated in advance, and the corresponding algorithm ID may be randomly acquired.
Optionally, the verification codes, the encryption algorithm ID and the decryption algorithm ID of each period of time are loaded in the program of the server in a red-black tree mode to verify the verification codes between the recording equipment and the server, and the decryption algorithm and the generated verification codes are rapidly searched through the storage structure of the red-black tree.
Alternatively, to improve security, the check code and algorithm ID may be automatically refreshed once at 0 point per day.
Then, a generation module is arranged in the data server, the generation module generates random check codes according to time periods, each time period corresponds to one random check code, and each time period corresponds to one set of encryption and decryption algorithm.
Then, the random check code generated by the generation module of the data server and the acquired encryption algorithm ID and decryption algorithm ID are respectively input into the red-black tree data structure according to the segmentation of the time period. As shown in FIG. 6, according to the time period of every 5 minutes, the check code and algorithm ID corresponding to different time periods can be quickly found by adopting the red-black tree data structure.
And finally, the current recording equipment firstly transmits an uploading requirement to a server before uploading data, and the server confirms that the uploading requirement is transmitted by the equipment meeting the encryption condition, and then transmits a check code to the recording equipment. Because each recording device has its own device ID, the recording device carries its own device ID and current time stamp when sending the uploading demand, and the server judges that the device ID is held by the device meeting the encryption condition, and according to the time stamp carried by the recording device in the uploading demand. For example, timestamp: 2020-01-01:10:01:01, confirming that the time period is 10:00-10:05, and quickly searching a corresponding check code and algorithm ID from the time period to the red black tree data structure; and issuing the check code to the recording equipment.
After the current recording equipment acquires the check code, the audio data file and the received check code are together transmitted to the server. And the data server checks the uploaded audio data file by extracting the check code, and after the check codes are consistent, the data server inquires an ID interface of the uploaded audio data file according to the corresponding encryption algorithm ID, so that the corresponding encryption algorithm is called to encrypt the audio data file.
Optionally, when the user needs to download or query the encrypted audio data file, the user queries the ID interface of the encrypted audio data file by confirming that the corresponding decryption algorithm ID is acquired in the server in the uploading time period, so as to invoke the corresponding decryption algorithm to decrypt the audio data file.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, sending first uploading request information to a data server, wherein the first uploading request information comprises a device ID (identity) of current recording equipment and a time stamp, and the time stamp is a time stamp when the first uploading request is sent;
s2, receiving verification information issued by the data server according to the equipment ID and the time stamp;
s3, sending the verification information and the audio data to be encrypted, so that the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method and the timestamp have an association relation.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of:
s1, receiving verification information containing the verification code under the condition that the equipment meets encryption conditions according to the equipment ID and the time period to which the time stamp belongs is determined to correspond to the verification code and the ID of a preset encryption method according to the time stamp;
s2, receiving verification information containing the verification code under the condition that the equipment meets encryption conditions according to the equipment ID and the time period to which the time stamp belongs corresponds to the verification code and the ID of a preset encryption method according to the time stamp.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, sending first uploading request information to a data server, wherein the first uploading request information comprises a device ID (identity) of current recording equipment and a time stamp, and the time stamp is a time stamp when the first uploading request is sent;
s2, receiving verification information issued by the data server according to the equipment ID and the time stamp;
s3, sending the verification information and the audio data to be encrypted, so that the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method and the timestamp have an association relation.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method of data processing, comprising:
Transmitting first uploading request information to a data server, wherein the first uploading request information comprises a device ID (identity) of a current recording device and a time stamp, and the time stamp is a time stamp when the first uploading request is transmitted;
receiving, by the data server, verification information including a verification code sent by the data server when the current recording device meets encryption conditions according to the device ID and a time period to which the time stamp belongs corresponds to the verification code and an ID of a preset encryption method, where the verification information is obtained by the data server from a preset red-black tree data structure, and the preset red-black tree data structure stores the verification information and the encryption and decryption method that are randomly generated according to a plurality of time periods;
and sending the verification information and the audio data to be encrypted, so that the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method is a set of encryption algorithm randomly selected from a plurality of preset encryption algorithms in a time period to which the time stamp belongs.
2. The method according to claim 1, wherein transmitting the verification information and the data to be encrypted for encrypting the data to be encrypted according to a preset encryption method in the case that the verification information passes verification comprises:
and sending the check code in the check information and the data to be encrypted according to the received check information containing the check code, so that the data server inquires the preset encryption method according to the ID of the preset encryption method to encrypt the data to be encrypted under the condition that the check code passes the check.
3. The method as recited in claim 2, further comprising:
and under the condition of downloading or inquiring the encrypted data, acquiring an ID of a preset decryption method corresponding to the time period to which the time stamp belongs, and decrypting the data.
4. A method of data processing, comprising:
cutting the preset processing time length into a plurality of time periods; randomly generating verification information and an encryption and decryption method according to a plurality of time periods; storing the verification information and the encryption and decryption method corresponding to each time period in a preset red-black tree data structure;
The method comprises the steps that a data server receives first uploading request information sent by current recording equipment, wherein the first uploading request information comprises equipment ID and a time stamp, the time stamp is a time stamp when the first uploading request is sent, and the equipment ID is used for determining whether equipment meets encryption conditions or not;
the data server determines verification information corresponding to a time period to which the time stamp belongs and a preset encryption method, wherein the verification information comprises a verification code;
under the condition that the data server determines that the current recording equipment meets encryption conditions according to the equipment ID, the data server transmits the verification information;
and encrypting the audio data to be encrypted according to the preset encryption method under the condition that the verification information passes the verification, wherein the preset encryption method is a set of encryption algorithm randomly selected from a plurality of sets of preset encryption algorithms in a time period to which the time stamp belongs.
5. The method of claim 4, wherein the step of determining the position of the first electrode is performed,
the method for determining the verification information and the preset encryption method according to the time period of the time stamp comprises the following steps:
determining verification information and a preset encryption method in a target time period according to the time period to which the time stamp belongs;
Encrypting the data to be encrypted according to the preset encryption method under the condition that the verification information passes the verification comprises the following steps:
a preset encryption method in the determined target time period under the condition that the verification information passes verification;
encrypting the data to be encrypted according to a preset encryption method in the target time period.
6. The method according to claim 4, wherein the encrypting the data to be encrypted according to the preset encryption method in the case that the verification information passes the verification further comprises:
receiving a processing request, wherein the processing request comprises downloading or inquiring encrypted data;
inquiring a corresponding decryption method in the preset red-black tree data structure according to the ID of the decryption method;
decrypting the encrypted data according to the decryption method.
7. A data processing apparatus, comprising:
the uploading module is used for sending first uploading request information to the data server, wherein the first uploading request information comprises the equipment ID of the current recording equipment and a time stamp, and the time stamp is the time stamp when the first uploading request is sent;
A first receiving module, configured to receive, when the data server determines, according to the device ID, that the current recording device meets an encryption condition and a time period to which the timestamp belongs corresponds to a check code and an ID of a preset encryption method, check information including the check code sent by the data server, where the check information is check information obtained by the data server from a preset mangrove data structure, and the preset mangrove data structure stores therein the check information and the encryption and decryption method that are randomly generated according to a plurality of time periods;
the sending module is used for sending the verification information and the audio data to be encrypted, so that the data server encrypts the audio data to be encrypted according to a preset encryption method under the condition that the verification information passes verification, wherein the preset encryption method is a set of encryption algorithm randomly selected from a plurality of preset encryption algorithms in a time period to which the time stamp belongs.
8. A data processing apparatus, comprising:
the preprocessing module is used for cutting the preset processing time length into a plurality of time periods before receiving the first uploading request information sent by the current recording equipment; randomly generating verification information and an encryption and decryption method according to a plurality of time periods; storing the verification information and the encryption and decryption method corresponding to each time period in a preset red-black tree data structure;
The second receiving module is used for receiving first uploading request information sent by the current recording device, wherein the first uploading request information comprises a device ID and a time stamp, the time stamp is a time stamp when the first uploading request is sent, and the device ID is used for determining whether the device meets encryption conditions;
the determining module is used for determining verification information and a preset encryption method corresponding to the time period to which the time stamp belongs by the data server, wherein the verification information comprises a verification code;
the issuing module is used for issuing the verification information by the data server under the condition that the data server determines that the current recording equipment meets the encryption condition according to the equipment ID;
the encryption module is used for encrypting the audio data to be encrypted according to the preset encryption method under the condition that the verification information passes the verification, wherein the preset encryption method is a set of encryption algorithm randomly selected from a plurality of sets of preset encryption algorithms in a time period to which the time stamp belongs.
CN202010670447.5A 2020-07-13 2020-07-13 Data processing method and device Active CN111917555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010670447.5A CN111917555B (en) 2020-07-13 2020-07-13 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010670447.5A CN111917555B (en) 2020-07-13 2020-07-13 Data processing method and device

Publications (2)

Publication Number Publication Date
CN111917555A CN111917555A (en) 2020-11-10
CN111917555B true CN111917555B (en) 2024-03-15

Family

ID=73227867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010670447.5A Active CN111917555B (en) 2020-07-13 2020-07-13 Data processing method and device

Country Status (1)

Country Link
CN (1) CN111917555B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672333B (en) * 2020-12-15 2023-08-25 三维通信股份有限公司 Equipment connection method and device
CN112714112B (en) * 2020-12-22 2022-05-17 四川云申至诚科技有限公司 Data encryption and decryption method for server data storage, storage medium and terminal equipment
CN113360884A (en) * 2021-06-11 2021-09-07 潍柴动力股份有限公司 Equipment authentication method, vehicle-mounted terminal, server and system
CN113890730A (en) * 2021-09-23 2022-01-04 上海华兴数字科技有限公司 Data transmission method and system
CN114490167A (en) * 2022-01-25 2022-05-13 京东方科技集团股份有限公司 Display terminal verification method and device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959279A (en) * 2016-04-29 2016-09-21 大连理工大学 Computer information transmission system and method based on encryption processing
KR200481693Y1 (en) * 2016-09-01 2016-11-01 이경구 Cloud voice recording system
CN106101368A (en) * 2016-07-07 2016-11-09 立德高科(昆山)数码科技有限责任公司 The method and system of Quick Response Code have been generated based on telephonograph
CN107633588A (en) * 2017-10-24 2018-01-26 北京金储自动化技术有限公司 Control method, system, lockset, electronic equipment and readable storage medium storing program for executing
WO2018032573A1 (en) * 2016-08-18 2018-02-22 中兴通讯股份有限公司 Data processing method, apparatus, server and terminal
WO2018196541A1 (en) * 2017-04-24 2018-11-01 腾讯科技(深圳)有限公司 Document sharing method, server, terminal and storage medium
CN108809940A (en) * 2018-05-04 2018-11-13 四川理工学院 Network system server interacts encryption method with client

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959279A (en) * 2016-04-29 2016-09-21 大连理工大学 Computer information transmission system and method based on encryption processing
CN106101368A (en) * 2016-07-07 2016-11-09 立德高科(昆山)数码科技有限责任公司 The method and system of Quick Response Code have been generated based on telephonograph
WO2018032573A1 (en) * 2016-08-18 2018-02-22 中兴通讯股份有限公司 Data processing method, apparatus, server and terminal
KR200481693Y1 (en) * 2016-09-01 2016-11-01 이경구 Cloud voice recording system
WO2018196541A1 (en) * 2017-04-24 2018-11-01 腾讯科技(深圳)有限公司 Document sharing method, server, terminal and storage medium
CN107633588A (en) * 2017-10-24 2018-01-26 北京金储自动化技术有限公司 Control method, system, lockset, electronic equipment and readable storage medium storing program for executing
CN108809940A (en) * 2018-05-04 2018-11-13 四川理工学院 Network system server interacts encryption method with client

Also Published As

Publication number Publication date
CN111917555A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN111917555B (en) Data processing method and device
CN110049016B (en) Data query method, device, system, equipment and storage medium of block chain
EP2940959A1 (en) Information processing method, retrieving method, device, user terminal and server
CN105120530B (en) Method and device for acquiring data and data acquisition system
CN113259382B (en) Data transmission method, device, equipment and storage medium
CN111614670A (en) Method and device for sending encrypted file and storage medium
US10063655B2 (en) Information processing method, trusted server, and cloud server
CN115208705B (en) Encryption and decryption method and device based on link data self-adaptive adjustment
CN112883388A (en) File encryption method and device, storage medium and electronic device
CN111372056A (en) Video data encryption and decryption processing method and device
CN111787514B (en) Method and device for acquiring equipment control data, storage medium and electronic device
CN111490880B (en) File receiving method and device
CN110166460B (en) Service account registration method and device, storage medium and electronic device
CN113346999B (en) Splitting encryption-based brain central system
CN106972928B (en) Bastion machine private key management method, device and system
CN111506913B (en) Audio encryption method and device, storage medium and electronic device
CN104580262A (en) Safety method applicable to wireless internet of things
CN110913350B (en) Anti-cheating attendance checking method, device and system
CN111464496B (en) Data transmission method, device, system, storage medium and electronic device
CN114490451A (en) Data encryption and data decryption method and device, storage medium and electronic device
CN114423001A (en) Decryption method, server and storage medium
CN111404901A (en) Information verification method and device
CN113452654B (en) Data decryption method
CN112672333B (en) Equipment connection method and device
KR101503009B1 (en) Method and apparatus for identifying application based on data size

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant