A kind of information transfer encryption and decryption method and system based on mobile Internet
Technical field
The present invention relates to information encryption and decryption technology field, more particularly to a kind of information transfer based on mobile Internet adds solution
Decryption method and system.
Background technology
In mobile Internet, relay station of the base station as information remote wireless transmission, information need to be encrypted after
Can be transmitted using radio channel, otherwise will appear from information and intercepted by other wireless stations, cause information content to be revealed.It is logical
Generation encryption information is encrypted to information for transmitting terminal base station often, receiving terminal base station will using cryptographic algorithm corresponding with encryption
Encryption information is decrypted acquisition restored data;But it is as information transfer instantaneity is required, traditional to information whole encryption and decryption
Mode, necessarily bring the delay of information transfer.
The content of the invention
It is an object of the present invention to provide a kind of information transfer encryption and decryption method and system based on mobile Internet, solves existing
The problems referred to above present in technology.
The technical scheme that the present invention solves above-mentioned technical problem is as follows:
A kind of information transfer encipher-decipher method based on mobile Internet, comprises the steps:
Step 1, sends terminal and transmits information to transmitting terminal base station, and transmitting terminal base station is by default extracting rule from the letter
In breath, extraction partial data is encrypted and obtains ciphertext, and the partial data generation ciphertext replaced in described information adds
Confidential information, and the encryption information is transmitted to receiving terminal base station;
Step 2, the institute in the encryption information as described in Rule Extraction corresponding with the default extracting rule of receiving terminal base station
Ciphertext is stated, and restored data is obtained using being decrypted the ciphertext with the corresponding cryptographic algorithm of encryption, by the restored data
Replace the ciphertext in the encryption information and generate recovery information, and by the recovery information transfer to receiving terminal.
The invention has the beneficial effects as follows:Encryption and decryption is carried out to the partial data in information only, transmitting terminal base station has both been can guarantee that
Be transferred to receiving terminal base station information be intercepted after, due to which part data it is encrypted, interceptor cannot awareness information content,
The operand of encryption and decryption is reduced again, is reduced as the information transfer brought by encryption and decryption postpones, is improved the instant of information transfer
Property.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement.
Further, the encryption and decryption are using symmetric cryptography mode.
Using the beneficial effect of above-mentioned further scheme it is:Due to the stationarity of base station, can be in advance by encryption key distribution to each
Base station, in symmetric cryptography mode, encryption and decryption processes adopt same key, have both been easy to the distribution of key, reduce again plus solution
Close computational complexity, further reduces the information transfer delay brought by encryption and decryption, improves the instantaneity of information transfer.
Further, the symmetric cryptography mode is AES (Advanced Encryption Standard) mode.
Using the beneficial effect of above-mentioned further scheme it is:, used as conventional symmetric cipher mode, its algorithm is simple for AES, peace
Quan Xinggao.
Further, the default extracting rule is the extracting rule in units of byte.
Using the beneficial effect of above-mentioned further scheme it is:It is easy to the extraction of data.
Further, the default extracting rule is the extraction that the second predetermined word joint number is extracted at interval of the first predetermined word joint number
Rule.
Using the beneficial effect of above-mentioned further scheme it is:Interval same word joint number extracts the data of same word joint number, enters
One step is easy to the extraction of data, and can adjust interval byte number and extract byte number, adapt to according to the level of security of transmission information
In the information transfer of different level of securitys.
Another technical scheme of the present invention is as follows:
A kind of information transfer encrypting and deciphering system based on mobile Internet, including send terminal, transmitting terminal base station, receiving terminal
Base station and receiving terminal;
The transmission terminal, which is used to transmit information to transmitting terminal base station;
The transmitting terminal base station, which is used to partial data is extracted from described information by default extracting rule and is encrypted
To ciphertext, the ciphertext is replaced the partial data in described information and generates encryption information, and the encryption information is passed
Transport to receiving terminal base station;
The receiving terminal base station, which is used in the encryption information as described in Rule Extraction corresponding with the default extracting rule
The ciphertext, obtain restored data using being decrypted the ciphertext with the corresponding cryptographic algorithm of encryption, by the recovery
Data are replaced the ciphertext in the encryption information and generate recovery information, and by the recovery information transfer to receiving terminal;
The receiving terminal, which is used to receive the recovery information.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement.
Further, the encryption and decryption are using symmetric cryptography mode.
Further, the symmetric cryptography mode is AES modes.
Further, the default extracting rule is the extracting rule in units of byte.
Further, the default extracting rule is the extraction that the second predetermined word joint number is extracted at interval of the first predetermined word joint number
Rule.
Description of the drawings
Fig. 1 is a kind of flow chart of the information transfer encipher-decipher method based on mobile Internet of the present invention;
Fig. 2 is a kind of theory diagram of the information transfer encrypting and deciphering system based on mobile Internet of the present invention.
Specific embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, example is served only for explaining the present invention, and
It is non-for limiting the scope of the present invention.
As shown in figure 1, a kind of information transfer encipher-decipher method based on mobile Internet described in the embodiment of the present invention 1, bag
Include following steps:
Step 1, sends terminal and transmits information to transmitting terminal base station, and transmitting terminal base station is by default extracting rule from the letter
In breath, extraction partial data is encrypted and obtains ciphertext, and the partial data generation ciphertext replaced in described information adds
Confidential information, and the encryption information is transmitted to receiving terminal base station;
Step 2, the institute in the encryption information as described in Rule Extraction corresponding with the default extracting rule of receiving terminal base station
Ciphertext is stated, and restored data is obtained using being decrypted the ciphertext with the corresponding cryptographic algorithm of encryption, by the restored data
Replace the ciphertext in the encryption information and generate recovery information, and by the recovery information transfer to receiving terminal.
A kind of information transfer encipher-decipher method based on mobile Internet described in the embodiment of the present invention 2, in the base of embodiment 1
On plinth, the encryption and decryption are using symmetric cryptography mode.
A kind of information transfer encipher-decipher method based on mobile Internet described in the embodiment of the present invention 3, in the base of embodiment 2
On plinth, the symmetric cryptography mode is AES modes.
A kind of information transfer encipher-decipher method based on mobile Internet described in the embodiment of the present invention 4, in embodiment 1 to 3
On the basis of any embodiment, the default extracting rule is the extracting rule in units of byte.
A kind of information transfer encipher-decipher method based on mobile Internet described in the embodiment of the present invention 5, in the base of embodiment 4
On plinth, the default extracting rule is the extracting rule that the second predetermined word joint number is extracted at interval of the first predetermined word joint number.
A kind of information transfer encrypting and deciphering system based on mobile Internet described in the embodiment of the present invention 6, including transmission terminal,
Transmitting terminal base station, receiving terminal base station and receiving terminal;
The transmission terminal, which is used to transmit information to transmitting terminal base station;
The transmitting terminal base station, which is used to partial data is extracted from described information by default extracting rule and is encrypted
To ciphertext, the ciphertext is replaced the partial data in described information and generates encryption information, and the encryption information is passed
Transport to receiving terminal base station;
The receiving terminal base station, which is used in the encryption information as described in Rule Extraction corresponding with the default extracting rule
The ciphertext, obtain restored data using being decrypted the ciphertext with the corresponding cryptographic algorithm of encryption, by the recovery
Data are replaced the ciphertext in the encryption information and generate recovery information, and by the recovery information transfer to receiving terminal;
The receiving terminal, which is used to receive the recovery information.
A kind of information transfer encrypting and deciphering system based on mobile Internet described in the embodiment of the present invention 7, in the base of embodiment 6
On plinth, the encryption and decryption are using symmetric cryptography mode.
A kind of information transfer encrypting and deciphering system based on mobile Internet described in the embodiment of the present invention 8, in the base of embodiment 7
On plinth, the symmetric cryptography mode is AES modes.
A kind of information transfer encrypting and deciphering system based on mobile Internet described in the embodiment of the present invention 9, in embodiment 6 to 8
On the basis of any embodiment, the default extracting rule is the extracting rule in units of byte.
A kind of information transfer encrypting and deciphering system based on mobile Internet described in the embodiment of the present invention 10, in embodiment 9
On the basis of, the default extracting rule is the extracting rule that the second predetermined word joint number is extracted at interval of the first predetermined word joint number.
The foregoing is only presently preferred embodiments of the present invention, not to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.