CN110830451B - Data transmission method, device, storage medium and terminal - Google Patents

Data transmission method, device, storage medium and terminal Download PDF

Info

Publication number
CN110830451B
CN110830451B CN201910998416.XA CN201910998416A CN110830451B CN 110830451 B CN110830451 B CN 110830451B CN 201910998416 A CN201910998416 A CN 201910998416A CN 110830451 B CN110830451 B CN 110830451B
Authority
CN
China
Prior art keywords
data
sub
character string
preset
rule
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
CN201910998416.XA
Other languages
Chinese (zh)
Other versions
CN110830451A (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 Bestone Information Technology Co ltd
Original Assignee
Shanghai Bestone Information Technology 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 Bestone Information Technology Co ltd filed Critical Shanghai Bestone Information Technology Co ltd
Priority to CN201910998416.XA priority Critical patent/CN110830451B/en
Publication of CN110830451A publication Critical patent/CN110830451A/en
Application granted granted Critical
Publication of CN110830451B publication Critical patent/CN110830451B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Storage Device Security (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a data transmission method, a data transmission device, a storage medium and a terminal, wherein the data transmission method comprises the following steps: adding a sending time stamp to original data to obtain a first character string carrying the sending time stamp; intercepting at least two sub-character strings from the first character string; rearranging the intercepted sub character strings to obtain rearranged sub character strings; a data receiver receives the sent encrypted data; decrypting the substrings in the rearranged substrings to obtain the substrings intercepted by the data provider again; intercepting at least two sub-strings from the received first string; and comparing the substring intercepted by the data receiver with the substring intercepted by the data provider and received by the data receiver. The method and the device have the advantages that the encrypted data content is subjected to data interception and rearrangement, and the data receiver is verified, so that the data is not easy to crack and forge, the safety is good, and the risk that the data content is attacked and stolen by a third party is reduced.

Description

Data transmission method, device, storage medium and terminal
Technical Field
The invention relates to the technical field of data communication, in particular to a data transmission method, a data transmission device, a data transmission storage medium and a data transmission terminal.
Background
The rapid development of network technology makes data transmission go deep into the aspect of life, and the network security problem therewith becomes the focus of attention. For example, in data transmission, an illegal person steals a character string and directly sends a random character string to a server, so that the risk of stealing user data exists.
Today, many techniques have been proposed for data transmission methods, such as performing operations such as shifting, xor, etc. on plaintext data through a key to encrypt the data, and if the plaintext data cannot be decrypted correctly, only an unknown character string (i.e., a garbled code) can be obtained. However, since the length of the key is fixed, the time for breaking by the exhaustion method is shorter and shorter, and the security of the data becomes lower and lower. Especially, under the condition that many encryption principles are well known, a new encryption method is urgently needed for carrying out the safe transmission of data.
Disclosure of Invention
The application provides a data transmission method, a data transmission device, a storage medium and a terminal, which can ensure the safety of user data transmission in a convenient mode and reduce the risk of attack, embezzlement or tampering.
In order to achieve the purpose, the invention adopts the following technical scheme:
a first aspect of the present application provides a data transmission method, at a data provider, including:
the data provider adds a sending time stamp to the original data based on an agreed algorithm to obtain a first character string carrying the sending time stamp;
intercepting at least two sub-character strings from the first character string according to a preset first rule;
rearranging the intercepted sub character strings according to a preset second rule to obtain rearranged sub character strings; the first character string and the rearranged sub-character string are assembled according to a preset format to form encrypted data which are sent to a data receiving party;
at a data receiving side, the method comprises the following steps:
-receiving the encrypted data sent by the data provider;
according to a second preset rule, decrypting the substrings in the rearranged substrings to obtain the substrings intercepted by the data provider again;
-intercepting at least two substrings from the received first string according to a preset first rule;
comparing the sub-character string intercepted by the data receiver with the sub-character string intercepted by the data provider and received by the data receiver to obtain a comparison result;
when the comparison result shows that the substring intercepted by the data receiving party is matched with the substring intercepted by the data providing party and received by the data receiving party, the verification is passed, the first string is decrypted based on an agreed algorithm, the insertion position of the sending timestamp is calculated, the sending timestamp is removed from the first string, and the initial original data is obtained.
Preferably, for example, in a preferred embodiment, the first string comprises at least two portions, each separated by an 8-bit hexadecimal number FF: the first part is a 17-bit transmission time stamp, which is the current time of original data transmission, arranged in the order of yearly (YYYY) monthly (MM) daily (DD) time (HH) in (MM) seconds (ss) milliseconds (SSS); the second part is the length of the original data.
Preferably, the method further comprises: receiving a response sent by the data receiver for encrypted data, the response comprising:
and receiving error information sent by a data receiving party when the encrypted data is processed and verified and the verification is failed.
In a preferred embodiment, after intercepting the sub-character string, the characters in the sub-character string are rearranged according to a preset third rule, and then, according to a preset second rule, the sub-character strings rearranged according to the preset third rule are rearranged to obtain a rearranged sub-character string.
Therefore, the data receiving party decrypts the sub-character strings in the rearranged sub-character strings according to the preset second rule and the preset third rule, and obtains the sub-character strings intercepted by the data providing party again.
Preferably, the method further comprises: and when the comparison result shows that the substring intercepted by the data receiver is not matched with the substring intercepted by the data provider received by the data receiver, the verification is failed, and the first string is not decrypted or error information is not sent to the data provider.
A second aspect of the present application provides a data transmission apparatus, including: a data providing terminal and a data receiving terminal; wherein,
the data providing terminal includes:
a counter configured to generate a transmission time stamp for the raw data;
the encryption unit is configured to add a sending timestamp to original data to obtain an encrypted first character string based on an agreed algorithm, intercept at least two sub-character strings from the first character string according to a preset first rule, and rearrange the intercepted sub-character strings according to a preset second rule to obtain a rearranged sub-character string; the first communication unit is configured to transmit encrypted data formed by assembling the first character string and the rearranged sub-character string according to a preset format to the data receiving terminal so that the data receiving terminal can carry out data verification;
the data receiving terminal includes:
the second communication unit is configured to acquire data which is transmitted by the data providing terminal and is generated by assembling the first character string and the rearranged sub-character string according to a predetermined format;
the processing unit is configured to decrypt the substring in the rearranged substring according to a preset second rule, and obtain the substring intercepted by the data provider again; intercepting at least two sub-character strings from the received first character string according to a preset first rule;
the verification unit is configured to compare the substring intercepted by the data receiving party with the substring intercepted by the data providing party and received by the data receiving party, so as to obtain a comparison result;
the decryption unit is configured to decrypt the first character string based on an agreed algorithm when the verification passes, calculate an insertion position of the transmission timestamp, and remove the transmission timestamp from the first character string to obtain the initial original data.
Preferably, for example, in a preferred embodiment, the first string comprises at least two portions, each separated by an 8-bit hexadecimal number FF: the first part is a 17-bit transmission time stamp, which is the current time of original data transmission, arranged in the order of yearly (YYYY) monthly (MM) daily (DD) time (HH) in (MM) seconds (ss) milliseconds (SSS); the second part is the length of the original data.
Preferably, the data providing terminal receives a response sent by the data receiving terminal to the encrypted data, the response including:
and receiving error information sent by the data receiving terminal when the encrypted data is processed and verified and the verification is failed.
In a preferred embodiment, after intercepting the sub-character string, the characters in the sub-character string are rearranged according to a preset third rule, and then, according to a preset second rule, the sub-character strings rearranged according to the preset third rule are rearranged to obtain a rearranged sub-character string.
Therefore, the data receiving terminal decrypts the sub-character strings in the rearranged sub-character strings according to the preset second rule and the preset third rule, and obtains the sub-character strings intercepted by the data providing terminal again.
Preferably, the data transmission apparatus further includes:
and the response triggering unit is configured to not decrypt the first character string or send error information to the data providing terminal when the comparison result obtained by the verification unit indicates that the verification is failed.
Preferably, the first rule comprises: and intercepting characters with preset length from the first character string according to a preset position as a sub-character string according to a preset direction.
More preferably, the preset direction includes: the first character string may be in a direction from a head end to a tail end of the first character string, in a direction from a tail end to a head end of the first character string, in a direction from both ends of the first character string to the middle of the first character string, or in a direction from a predetermined position of the first character string to both ends of the first character string.
More preferably, according to a preset direction, intercepting a character with a preset length from the first character string according to a preset position as a sub-character string, including: and calling a character string intercepting function by taking the preset position as a parameter according to the preset direction, and intercepting the first character string to obtain at least two sub-character strings.
More preferably, the preset position is m bits, the preset length is n bits, and the preset direction is from the head end to the tail end, then n characters are cut back from the m-th character of the first character string, that is, the m-th bit to the (m + n-1) -th bit are cut.
More preferably, the preset position is m bits, the preset length is n bits, m is greater than or equal to n, the preset direction is from the preset position to both ends, then starting from the m-th character of the first character string (without the m-th character), n characters are respectively intercepted for the character string before the m-th character and the character string after the m-th character, namely, the (m +1) th bit is intercepted to the (m + n) th bit, and the (m-1) th bit is intercepted to the (m-n) th bit, so that two character strings can be obtained.
In the above aspect of the present invention, m and n are each independently a natural number.
Preferably, the substring may be at least 20 bytes, preferably at least 25 bytes.
Preferably, the substring is preferably no more than 100 bytes.
Preferably, the second rule comprises: and sequentially connecting the sub character strings from front to back to generate a rearranged sub character string.
For example, two extracted substrings, string1 and string2, are connected in the order from front to back to obtain string1string2, which is the rearranged substring.
Preferably, the second rule comprises: and sequentially connecting the sub character strings from back to front to generate a rearranged sub character string.
For example, two extracted substrings, string1 and string2, are connected in the order from back to front to obtain string2string1, which is the rearranged substring.
Preferably, the second rule comprises:
sequentially connecting the sub-character strings from front to back;
and arranging the character strings which are sequentially connected in an ascending order, and generating a rearranged sub character string by the letters with the numbers in front or the numbers with the letters in front.
For example, two intercepted substrings, namely string1 and string2, are connected in the order from front to back to obtain string1string 2; arranging string1string2 in ascending order, setting the number as the first letter and the letter as the last letter, and obtaining the string 12 ggiinnrssrsstt after arrangement, wherein the string is the rearranged sub-string.
Preferably, the second rule comprises:
sequentially connecting the sub-character strings from front to back;
and arranging the character strings which are sequentially connected in a descending order, and generating a rearranged sub character string by the letters with the numbers in front or the numbers with the letters in front.
For example, two intercepted substrings, namely string1 and string2, are connected in the order from front to back to obtain string1string 2; the character string1string2 is arranged according to descending order, and the number is set as the first letter, and the character string 12 ttssrnnniig is obtained after arrangement, and the character string is the rearranged sub-character string.
Preferably, the second rule comprises:
sequentially connecting the sub-character strings from back to front;
and arranging the character strings which are sequentially connected in an ascending order, and generating a rearranged sub character string by the letters with the numbers in front or the numbers with the letters in front.
Preferably, the second rule comprises:
sequentially connecting the sub-character strings from back to front;
and arranging the character strings which are sequentially connected in a descending order, and generating a rearranged sub character string by the letters with the numbers in front or the numbers with the letters in front.
In a preferred embodiment, the third rule comprises:
the characters of each substring are arranged independently in descending order with the first letter followed by the number or the first letter followed by the number.
In a preferred embodiment, the third rule comprises:
the characters of each substring are arranged independently in ascending order with the first letter followed by the number or the first letter followed by the number.
A third aspect of the present application provides a data transmission medium having stored thereon computer instructions which, when executed, perform the steps of the data transmission method as described above.
A fourth aspect of the present application provides a terminal comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, the processor executing the computer instructions to perform the steps of the data transmission method as described above.
Compared with the prior art, the technical scheme of the invention has the following beneficial effects:
the data transmission method provided by the application is characterized in that in the data transmission process of a data provider and a data receiver, the data content is encrypted by utilizing timestamp information, the encrypted data content is subjected to data interception and rearrangement, the data receiver is verified, the data is not easy to crack and forge, the data transmission method has good safety, any data stream can be encrypted and transmitted quickly, the transmission safety of user data is effectively guaranteed, and the risk that the data content is attacked and stolen by a third party is reduced.
Detailed Description
The present invention provides a data transmission method, apparatus, storage medium and terminal, and in order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail by referring to examples below. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It is to be understood that the terms "first," "second," and the like in the description and in the claims of the present invention are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order, it being understood that the data so used may be interchanged under appropriate circumstances. Furthermore, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The first embodiment is as follows:
the data transmission method of the embodiment comprises the following steps:
at the data provider:
s01: the data provider adds a sending time stamp to the original data based on an agreed algorithm to obtain a first character string carrying the sending time stamp;
wherein the first string comprises at least two portions, each portion being separated by an 8-bit hexadecimal number FF: the first part is a 17-bit transmission time stamp, which is the current time of original data transmission, arranged in the order of yearly (YYYY) monthly (MM) daily (DD) time (HH) in (MM) seconds (ss) milliseconds (SSS); the second part is the length of the original data;
s02: intercepting two sub-character strings from the first character string according to a preset first rule; the method comprises the following specific steps: starting from the 50 th character of the first character string, 25 characters are cut back, namely the 50 th bit to the 74 th bit, to form a first substring string 1. Starting from the 100 th character of the first character string, 25 characters are intercepted backwards to obtain a second substring string 2;
s03: rearranging the intercepted sub character strings according to a preset second rule to obtain rearranged sub character strings; the method comprises the following specific steps: string1 and string2 are connected in the order from front to back to obtain string1string2 of the rearranged sub-character string;
s04: and transmitting the encrypted data formed by assembling the first character string and the rearranged sub-character string according to a preset format to a data receiver.
At the data receiving side:
s05: receiving encrypted data sent by a data provider;
s06: decrypting the substrings in the rearranged substring string1string2 according to a preset second rule, and obtaining the substrings string1 and string2 intercepted by the data provider again;
intercepting two substrings string1 'and string 2' from the first string according to a preset first rule;
s07: comparing string1 'with string1, and comparing string 2' with string2 to obtain a comparison result;
s08: and when the comparison result shows that string1 'is matched with string1, string 2' is matched with string2 one by one, the check is passed, the rearranged character string is decrypted based on an agreed algorithm, the insertion position of the sending time stamp is calculated, the sending time stamp is removed from the first character string, and the initial original data is obtained.
In this embodiment, the data provider may be an owner of the user data, and the data receiver may be a user of the user data. For example, the data consumer may be one server and the data provider may be another server, both operated by different operators. As another example, the data consumer may be an application installed on the user terminal, the application being connected to an application server of the data consumer, and the data provider may be another server and communicate with the data consumer.
In the embodiment, the data provider encrypts the data by adopting the timestamp based on the appointed algorithm, extracts the sub-character strings, rearranges and encrypts the data, and processes the sub-character strings to obtain the encrypted data, so that the safety of the user data is effectively ensured. When the scheme of the embodiment of the invention is applied to third-party login, even if a lawbreaker intercepts user data, the original data of the user cannot be obtained through decryption, and the user data cannot be tampered or counterfeited.
Example two:
the data transmission method of the embodiment comprises the following steps:
at the data provider:
s01: the data provider adds a sending time stamp to the original data based on an agreed algorithm to obtain a first character string carrying the sending time stamp;
wherein the first string comprises at least two portions, each portion being separated by an 8-bit hexadecimal number FF: the first part is a 17-bit transmission time stamp, which is the current time of original data transmission, arranged in the order of yearly (YYYY) monthly (MM) daily (DD) time (HH) in (MM) seconds (ss) milliseconds (SSS); the second part is the length of the original data;
s02: intercepting two sub-strings string1 and string2 from the first string according to a preset first rule;
s03: rearranging the intercepted sub character strings according to a preset second rule to obtain rearranged sub character strings; the method comprises the following specific steps: string1 and string2 are connected in sequence from back to front to obtain string2string1 of the rearranged sub-character string;
s04: and transmitting the encrypted data formed by assembling the first character string and the rearranged sub-character string according to a preset format to a data receiver.
At the data receiving side:
s05: receiving encrypted data sent by a data provider;
s06: decrypting the substrings in the rearranged substring string2string1 according to a preset second rule, and obtaining the substrings string1 and string2 intercepted by the data provider again;
intercepting two substrings string1 'and string 2' from the first string according to a preset first rule;
s07: comparing string1 'with string1, and comparing string 2' with string2 to obtain a comparison result;
s08: and when the comparison result shows that string1 'is matched with string1, string 2' is matched with string2 one by one, the verification is passed, the first character string is decrypted based on an agreed algorithm, the insertion position of the sending time stamp is calculated, the sending time stamp is removed from the first character string, and the initial original data is obtained.
Example three:
the data transmission method of the embodiment comprises the following steps:
at the data provider:
s01: the data provider adds a sending time stamp to the original data based on an agreed algorithm to obtain a first character string carrying the sending time stamp;
wherein the first string comprises at least two portions, each portion being separated by an 8-bit hexadecimal number FF: the first part is a 17-bit transmission time stamp, which is the current time of original data transmission, arranged in the order of yearly (YYYY) monthly (MM) daily (DD) time (HH) in (MM) seconds (ss) milliseconds (SSS); the second part is the length of the original data;
s02: intercepting two sub-strings string1 and string2 from the first string according to a preset first rule;
s03: rearranging the intercepted sub character strings according to a preset second rule to obtain rearranged sub character strings, which specifically comprises the following steps: string1 and string2 are connected in sequence from front to back to obtain string1string 2; arranging string1string2 in ascending order, setting the number as the first letter and the letter as the last letter, and obtaining the string 12 ggiinnrssrsstt after arrangement, wherein the string is the rearranged sub-string.
S04: and transmitting the encrypted data formed by assembling the first character string and the rearranged sub-character string according to a preset format to a data receiver.
At the data receiving side:
s05: receiving encrypted data sent by a data provider;
s06: decrypting the substrings in the rearranged substrings according to a preset second rule, and obtaining substrings string1 and string2 intercepted by a data provider again;
intercepting two substrings string1 'and string 2' from the first string according to a preset first rule;
s07: comparing string1 'with string1, and comparing string 2' with string2 to obtain a comparison result;
s08: and when the comparison result shows that string1 'is matched with string1, string 2' is matched with string2 one by one, the verification is passed, the first character string is decrypted based on an agreed algorithm, the insertion position of the sending time stamp is calculated, the sending time stamp is removed from the first character string, and the initial original data is obtained.
Example four:
the data transmission method of the embodiment comprises the following steps:
at the data provider:
s01: the data provider adds a sending time stamp to the original data based on an agreed algorithm to obtain a first character string carrying the sending time stamp;
wherein the first string comprises at least two portions, each portion being separated by an 8-bit hexadecimal number FF: the first part is a 17-bit transmission time stamp, which is the current time of original data transmission, arranged in the order of yearly (YYYY) monthly (MM) daily (DD) time (HH) in (MM) seconds (ss) milliseconds (SSS); the second part is the length of the original data;
s02: intercepting two sub-strings string1 and string2 from the first string according to a preset first rule;
s021: according to a preset third ruleThe substrings are rearranged independently and respectively with their respective characters, specifically, the characters of two substrings string1, string2 are arranged independently in descending order, and the number is before the letter or the letter is before the number, to obtain string11、string21
S03: rearranging the character among the rearranged sub character strings according to a preset second rule to obtain a rearranged sub character string, which specifically comprises the following steps: string11、string21Concatenated in front-to-back order to obtain a rearranged string11string21
S04: and transmitting the encrypted data formed by assembling the first character string and the rearranged sub-character string according to a preset format to a data receiver.
At the data receiving side:
s05: receiving encrypted data sent by a data provider;
s06: decrypting and rearranging the substrings according to a preset second rule and a preset third rule to obtain string1 and string 2;
intercepting two substrings string1 'and string 2' from the first string according to a preset first rule;
s07: comparing string1 'with string1, and comparing string 2' with string2 to obtain a comparison result;
s08: and when the comparison result shows that string1 'is matched with string1, string 2' is matched with string2 one by one, the verification is passed, the first character string is decrypted based on an agreed algorithm, the insertion position of the sending time stamp is calculated, the sending time stamp is removed from the first character string, and the initial original data is obtained.
Further, the embodiment of the present invention further discloses a storage medium, on which a computer instruction is stored, and when the computer instruction runs, the technical solution of the data transmission method described in the above illustrated embodiment is executed. Preferably, the storage medium may include a computer-readable storage medium such as a non-volatile (non-volatile) memory or a non-transitory (non-transient) memory. The storage medium may include ROM, RAM, magnetic or optical disks, etc.
Further, the embodiment of the present invention further discloses a terminal, which includes a memory and a processor, where the memory stores a computer instruction capable of running on the processor, and the processor executes the technical solution of the data transmission method in the above-described embodiment when running the computer instruction. Preferably, the terminal may be a User Equipment (UE).
The embodiments of the present invention have been described in detail, but the embodiments are merely examples, and the present invention is not limited to the embodiments described above. Any equivalent modifications and substitutions to those skilled in the art are also within the scope of the present invention. Accordingly, equivalent changes and modifications made without departing from the spirit and scope of the present invention should be covered by the present invention.

Claims (8)

1. A data transmission method, at a data provider, comprising:
the data provider adds a sending time stamp to the original data based on an agreed algorithm to obtain a first character string carrying the sending time stamp;
intercepting at least two sub-character strings from the first character string according to a preset first rule;
after intercepting the substrings, rearranging the characters in the substrings according to a preset third rule, and then rearranging each substring rearranged according to the preset third rule according to a preset second rule to obtain rearranged substrings;
the first character string and the rearranged sub-character string are assembled according to a preset format to form encrypted data which are sent to a data receiving party;
at a data receiving side, the method comprises the following steps:
receiving encrypted data sent by a data provider;
decrypting the substrings in the rearranged substrings according to a preset second rule and a preset third rule, and obtaining the substrings intercepted by the data provider again;
intercepting at least two sub-character strings from the received first character string according to a preset first rule;
comparing the substring intercepted by the data receiver with the substring intercepted by the data provider and received by the data receiver to obtain a comparison result;
when the comparison result shows that the substring intercepted by the data receiving party is matched with the substring intercepted by the data providing party and received by the data receiving party, the verification is passed, the first string is decrypted based on an agreed algorithm, the insertion position of the sending timestamp is calculated, the sending timestamp is removed from the first string, and the initial original data is obtained;
wherein the second rule comprises: sequentially connecting the sub-character strings from front to back, arranging the sequentially connected character strings in ascending order, and generating a rearranged sub-character string when the number is before the letter or the number is before the letter; or, the sub character strings are sequentially connected from front to back, the sequentially connected character strings are arranged in a descending order, and the number is before the letter or the number is before the letter, so as to generate a rearranged sub character string; or, the sub character strings are sequentially connected from back to front, the sequentially connected character strings are arranged in ascending order, and the number is before the letter or the number is before the letter, so as to generate a rearranged sub character string; or, the sub character strings are sequentially connected from back to front, the sequentially connected character strings are arranged in a descending order, and the number is before the letter or the number is before the letter, so as to generate a rearranged sub character string;
wherein the third rule comprises: arranging the characters of each sub-character string respectively and independently in a descending order, wherein the letters are before the numbers or the letters are before the numbers; alternatively, the characters of each substring are arranged independently in ascending order with the number preceding the letter or the number preceding the letter.
2. The data transmission method of claim 1, further comprising: the data receiver receives a response sent by the data receiver for the encrypted data, wherein the response comprises:
and receiving error information sent by a data receiving party when the encrypted data is processed and verified and the verification is failed.
3. The data transmission method according to claim 1, wherein when the comparison result indicates that the substring intercepted by the data receiver does not match the substring intercepted by the data provider and received by the data receiver, the check fails, and the first string is not decrypted or an error message is sent to the data provider.
4. A data transmission apparatus, comprising: a data providing terminal and a data receiving terminal; the data providing terminal includes:
a counter configured to generate a transmission time stamp for the raw data;
the encryption unit is configured to add a sending timestamp to original data to obtain an encrypted first character string based on an agreed algorithm, intercept at least two sub character strings from the first character string according to a preset first rule, rearrange characters in the sub character strings according to a preset third rule after intercepting the sub character strings, and rearrange each sub character string rearranged according to the preset third rule according to a preset second rule to obtain a rearranged sub character string; and
the first communication unit is configured to transmit encrypted data formed by assembling the first character string and the rearranged sub-character string according to a preset format to the data receiving terminal so that the data receiving terminal can carry out data verification;
a data receiving terminal comprising:
the second communication unit is configured to acquire data which is sent by the data providing terminal and generated by assembling the first character string and the rearranged sub-character string according to a preset format;
the processing unit is configured to decrypt the sub-character strings in the rearranged sub-character strings according to a preset second rule and a preset third rule, and obtain the sub-character strings intercepted by the data provider again; intercepting at least two sub-character strings from the received first character string according to a preset first rule;
the verification unit is configured to compare the sub-character strings intercepted by the data receiving party with the sub-character strings intercepted by the data providing party and received by the data receiving party to obtain a comparison result;
and the decryption unit is configured to decrypt the first character string based on an agreed algorithm when the verification passes, calculate the insertion position of the sending time stamp, remove the sending time stamp from the first character string and obtain the initial original data.
5. The data transmission apparatus according to claim 4, wherein the data providing terminal receives a response sent by the data receiving terminal for the encrypted data, the response including:
and receiving error information sent by the data receiving terminal when the encrypted data is processed and verified and the verification is failed.
6. The data transmission apparatus according to claim 4, wherein the data transmission apparatus further comprises:
and the response triggering unit is configured to not decrypt the first character string or send error information to the data providing terminal when the comparison result obtained by the verification unit indicates that the verification is failed.
7. A storage medium having stored thereon computer instructions, wherein said computer instructions are operable to perform the steps of the data transmission method of any one of claims 1 to 3.
8. A terminal comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, wherein the processor, when executing the computer instructions, performs the steps of the data transmission method according to any one of claims 1 to 3.
CN201910998416.XA 2019-10-21 2019-10-21 Data transmission method, device, storage medium and terminal Active CN110830451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910998416.XA CN110830451B (en) 2019-10-21 2019-10-21 Data transmission method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910998416.XA CN110830451B (en) 2019-10-21 2019-10-21 Data transmission method, device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110830451A CN110830451A (en) 2020-02-21
CN110830451B true CN110830451B (en) 2022-03-29

Family

ID=69549828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910998416.XA Active CN110830451B (en) 2019-10-21 2019-10-21 Data transmission method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110830451B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383522B (en) * 2020-11-02 2023-02-24 浙江苍南仪表集团股份有限公司 Function parameter data transmission encryption method, system, device and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8549279B1 (en) * 2007-10-23 2013-10-01 United Parcel Service Of America, Inc. Encryption and tokenization architectures
CN105553676A (en) * 2016-03-02 2016-05-04 上海普适导航科技股份有限公司 Beidou serial port communication method and sending and receiving device with equipment authentication function
CN105591737A (en) * 2016-01-27 2016-05-18 浪潮(北京)电子信息产业有限公司 Data encryption, decryption and transmission methods and systems
CN106027228A (en) * 2016-07-20 2016-10-12 努比亚技术有限公司 Encryption and decryption methods and encryption and decryption systems for webpage identification
CN107483199A (en) * 2017-10-10 2017-12-15 重庆浩品峰电子商务有限公司 Information Authentication method and device
CN109086600A (en) * 2018-07-23 2018-12-25 江苏恒宝智能系统技术有限公司 Password generates and Verification System
CN110213292A (en) * 2019-06-18 2019-09-06 深圳市网心科技有限公司 Data transmission method for uplink and device, data receiver method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10778659B2 (en) * 2012-05-24 2020-09-15 Smart Security Systems Llc System and method for protecting communications
CN105827408A (en) * 2015-12-03 2016-08-03 中国航天系统工程有限公司 Timestamp technique-based industrial network security transmission method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8549279B1 (en) * 2007-10-23 2013-10-01 United Parcel Service Of America, Inc. Encryption and tokenization architectures
CN105591737A (en) * 2016-01-27 2016-05-18 浪潮(北京)电子信息产业有限公司 Data encryption, decryption and transmission methods and systems
CN105553676A (en) * 2016-03-02 2016-05-04 上海普适导航科技股份有限公司 Beidou serial port communication method and sending and receiving device with equipment authentication function
CN106027228A (en) * 2016-07-20 2016-10-12 努比亚技术有限公司 Encryption and decryption methods and encryption and decryption systems for webpage identification
CN107483199A (en) * 2017-10-10 2017-12-15 重庆浩品峰电子商务有限公司 Information Authentication method and device
CN109086600A (en) * 2018-07-23 2018-12-25 江苏恒宝智能系统技术有限公司 Password generates and Verification System
CN110213292A (en) * 2019-06-18 2019-09-06 深圳市网心科技有限公司 Data transmission method for uplink and device, data receiver method and device

Also Published As

Publication number Publication date
CN110830451A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN107294937B (en) Data transmission method based on network communication, client and server
CN104219228B (en) A kind of user's registration, user identification method and system
US8892881B2 (en) Split key secure access system
CN110213195B (en) Login authentication method, server and user terminal
CN106506487A (en) A kind of information Encrypt and Decrypt method and device
CN107294964B (en) Information transmission method
JP2014209263A (en) Bandwidth efficient method and system for obscuring existence of encryption in communications channel
JP2011135464A (en) Authentication system, authentication apparatus, terminal device, authentication method and program
CN110868400B (en) Data transmission method, device, storage medium and terminal
WO2007044042A2 (en) Encryption methods and apparatus
CN111988301A (en) Secure communication method for preventing client from hacker violence attack
CN110830451B (en) Data transmission method, device, storage medium and terminal
CN104113410A (en) Method and device for data encryption transmission based on multi-table encryption method
CN114499837A (en) Method, device, system and equipment for preventing leakage of message
GB2488753A (en) Encrypted communication
CN111262645B (en) Data transmission method, device, storage medium and terminal
CN110881029B (en) Data transmission control method and device, storage medium and terminal
CN116866029B (en) Random number encryption data transmission method, device, computer equipment and storage medium
CN110881028B (en) Data transmission control method and device, storage medium and terminal
CN111064697B (en) Data transmission method, device, storage medium and terminal
CN113595982B (en) Data transmission method and device, electronic equipment and storage medium
CN108052836B (en) Anti-tampering method and device for patch package and server
CN114006697A (en) Encrypted communication method and device
CN104468607B (en) multi-server authentication method
CN114244616A (en) Login verification method, login verification system, electronic device and storage medium

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