Summary of the invention
In order to solve the above technical problems, being used the invention proposes a kind of intelligent Service information-pushing method, device and terminal
With solve the problems, such as the safety in actual information interactive process, in terms of.
According to one embodiment of present invention, the present invention provides a kind of intelligent Service information-pushing methods, are applied to one
Device at least one terminal pushed information, the method includes,
Obtain the exclusive identification code information of at least one terminal of reception information to be pushed in specified region, and to it is described extremely
The public key information that few terminal push one is randomly generated;
Generate solicited message corresponding at least one described terminal exclusive identification code information and private key information;
The solicited message and private key information are pushed at least one described terminal;
At least one described terminal verifies whether the private key information is legal information using received public key information, if
For legal information, then a response message is generated based on the solicited message, and return to the response message, otherwise, refusal returns
Response message.
Preferably, the exclusive identification code letter for obtaining at least one terminal that information to be pushed is received in specified region
Breath, and at least one described terminal push public key information before, further include presetting specified region, and be periodically detected
Whether there is new terminal to enter in the specified region.
Preferably, solicited message corresponding at least one described terminal exclusive identification code information and private key information are generated,
Further include, it is suitable based on the exclusive identification code information, the time of acquisition after the exclusive identification code of acquisition at least one terminal
Sequence arranges to generate list information, using random number encryption algorithm generation multiple public key informations identical with terminal quantity, and
The one-to-one relationship that terminal exclusive identification code and multiple and different public key informations are recorded in list, the public key information is pushed
To in terminal corresponding with list information.
It is preferably, described to generate solicited message corresponding at least one described host ID information and private key information,
Further include,
According to the time sequencing, the time-sequencing most preceding corresponding solicited message of host ID information and private key are generated
The solicited message and private key information are pushed to terminal corresponding with identification code information, and receive the described of feedback by information
After response message, the corresponding solicited message of host ID and private key information of regeneration time-sequencing time one, as a result, successively
Realize that all terminals into specified region push the reception of corresponding solicited message and private key information and response message.
Preferably, it is described push the solicited message and private key information at least one described terminal before, further include institute
State whether terminal real-time detection has fallen into predeterminable area, if it has, then detecting whether to receive the public affairs being randomly generated automatically
Key information.
Preferably, at least one described terminal verifies whether the private key information is legal letter using received public key information
Breath, specifically, the public key information is string data corresponding with the exclusive identification code information of the terminal, described in generation
When solicited message and private key information, using random number encryption algorithm for encryption solicited message, by the exclusive identification code information MD5
Encryption will form output data after the data combination after encrypted solicited message and md5 encryption, and terminal utilization receives
The public key information decrypts output data, is separated according to data bit, decrypts exclusive identification code information using MD5, judgement is
No is same identification code information, if so, continuing decoding request information, to demonstrate whether the private key information is legal letter
Breath.
According to still another embodiment of the invention, the present invention provides a kind of intelligent Service information push-delivery apparatus, described device
Including,
Module is obtained, for obtaining the exclusive identification code letter at least one terminal for receiving information to be pushed in specified region
Breath;
First pushing module, the public key information for being randomly generated at least one described terminal push one;
Generation module, for generating solicited message corresponding at least one described terminal exclusive identification code information and private key
Information, and list information is generated based on the exclusive identification code information, the arrangement of the time sequencing of acquisition, using random number plus
Close algorithm generates multiple public key informations identical with terminal quantity;
Second pushing module, for pushing the solicited message and private key information at least one described terminal;
Presetting module, whether for presetting specified region, and being periodically detected has new terminal to enter described specify
In region.
Preferably, the generation module, be also used to based on the exclusive identification code information, the time sequencing of acquisition arrangement come
List information is generated, generates multiple public key informations identical with terminal quantity using random number encryption algorithm,
And
According to the time sequencing, the corresponding solicited message of each terminal exclusive identification code in specified region and private key are generated
Information.
Preferably, described device further includes,
Data encryption module, for being added using random number encryption algorithm when generating the solicited message and private key information
Close solicited message, by the exclusive identification code information md5 encryption, by the number after encrypted solicited message and md5 encryption
According to forming output data after combination.
According to still another embodiment of the invention, the present invention provides a kind of terminal, and the terminal includes,
Receiving module, for receiving the pushed information of a specified device in predeterminable area, the pushed information includes public key
Information, solicited message and private key information;
Authentication module, for verifying whether the private key information is legal information using received public key information, specifically,
Exclusive identification code information is decrypted using MD5, judges whether it is same identification code information, if so, continue decoding request information, from
And demonstrate whether the private key information is legal information;
Processing module, for judging whether the pushed information received comes from specified device or other terminals, if it is
It is no, then reject pushed information;
Respond module for generating a response message based on the solicited message, and returns to the response message.
Using method of the invention, so that user in the use process of terminal, receives the device push approved from it
Information, on the one hand ensure that information push safety, still further aspect also ensure information push validity, in addition,
In payment technical field, but also the information of user is prevented to be leaked or cause any property loss in payment process, user ensure that
The safety of information.
Specific embodiment
A specific embodiment of the invention is explained in detail below in conjunction with attached drawing.
The invention proposes a kind of intelligent Service information-pushing methods, as shown in Figure 1, be applied to a device at least one
Terminal pushed information, the method includes,
S101, the exclusive identification code information for obtaining at least one terminal of reception information to be pushed in specified region, and to
The public key information that at least one terminal push one is randomly generated;
In embodiment, according to different application fields, device involved in the present invention, or a kind of terminal,
Or server end, effect are the push for being to realize specify information, functionally, the device may be implemented to some
All terminals realize the push of information in region.
In the present embodiment, the exclusive identification code information of terminal specifically can be regarded as capable of distinguishing other mobile terminals and
The identification information of other mobile terminal users, generally, common terminal identification information can have user terminal IP address, movement
Platform International ISDN number (Mobile Station international ISDN number, MSISDN), international mobile subscriber
Identification code (International Mobile Subscriber Identification Number, IMSI) and IMEI are
International Mobile Equipment Identity code (International Mobile Equipment Identity, IMEI) etc..
In the present embodiment step S101, the acquisition of host ID information is realized by way of signaling, wherein signaling
By related signaling interface received data when interface data specifically can be regarded as based on cellular network data communication, generally
Ground, common signaling interface have the signaling interfaces such as S1-MME, S1-U, S10 and S11;Message identifying specifically can be regarded as being based on
Cellular network data communication system common are base by exchanging a kind of message authenticated with the data cell of transmission in network
It is generated in remote customer dialing authentication system (Remote Authentication Dial In UserService, RADIUS)
Message identifying.
It, first can be in such a way that forthright concatenates or bypasses light splitting in the acquisition process of terminal exclusive identification code information
Obtain S11 signaling interface data;Either obtained being established by way of Socket connect or bypass light splitting with radius server
RADIUS authentication message is taken, the modes such as forthright concatenation, Socket connection and bypass light splitting in the above method are existing connect
The acquisition modes of mouth data or message identifying, which is not described herein again;Finally, can by acquired S11 signaling interface data or
RADIUS authentication message is analyzed to obtain the terminal identification information of mobile terminal user.
It in the present embodiment, further include setting in advance before this step in order to more preferably embody content set forth in the present invention
Specified region is set, and whether be periodically detected has new terminal to enter in the specified region.In specific application, for example,
At the cashier of certain supermarket, content according to the present invention, the cash register at cashier is equivalent to according to the present invention
Device, and the payment terminal of user is just terminal according to the present invention accordingly, on the one hand, it, will when user is lined up
The user group region of queuing is set as a specified region, alternatively, presetting a region, for example the number being lined up has reached ten
The exclusive identification code information in the region of people, user in this region, payment terminal is acquired, thus in cash device
The basic payment terminal information of corresponding user has been obtained in advance;Still further aspect is completed to leave cash register when user pays
After platform, device can be automatically deleted the user terminal information, that is to say, that the user terminal exclusive identification code information of acquisition is only used for
Secure payment certification, can be automatically deleted relevant information after completing payment, also ensure that the identification code information of user will not be by malice
It utilizes, is used as other use.Meanwhile device can also detect automatically into end message in predeterminable area, when have new terminal into
Enter into predeterminable area, then obtains the exclusive identification code information of the terminal.
S102, solicited message corresponding at least one described terminal exclusive identification code information and private key information are generated;
In the present embodiment the step of, after getting the exclusive identification code information of terminal, these identification code informations are carried out
Record, storage, during storage, also can will and acquisition time corresponding with identification code information recorded, stored, according to
Time sequencing records the exclusive identification code information, can be recorded with the form of list.
In the S101 step of the present embodiment, the public key information of random number encryption algorithm is produced, is wrapped in the public key information
Terminal exclusive identification code information is contained.It therefore, include that time, terminal are unique in list information when storing data above
Identification code and public key information.
In the S102 step of the present embodiment, request corresponding at least one described terminal exclusive identification code information is generated
Information and private key information.Solicited message herein is configured based on the content pushed to user, for example, leading in payment
In domain, cashier, will be by its device come the mobile phone of barcode scanning user during receiving the mobile payment of user, which asks
It asks as a kind of solicited message, meanwhile, for safety of guaranteeing payment, it is provided with private key information, that is, during information exchange,
The barcode scanning solicited message and private key information of generation can be issued user, wait the verifying of user, can just be realized after verifying
The function of payment.
According to the time sequencing, the time-sequencing most preceding corresponding solicited message of host ID information and private key are generated
The solicited message and private key information are pushed to terminal corresponding with identification code information, and receive the described of feedback by information
After response message, the corresponding solicited message of host ID and private key information of regeneration time-sequencing time one, as a result, successively
Realize that all terminals into specified region push the reception of corresponding solicited message and private key information and response message.
S103, the solicited message and private key information are pushed at least one described terminal;
In step 103 of the embodiment of the present invention, the solicited message and private key information are pushed at least one described terminal,
And before this, the terminal of user also can real-time detection its own whether drop into preset region, if it has, then from
It is dynamic to detect whether to receive the public key information being randomly generated.
S104, at least one described terminal verify whether the private key information is legal letter using received public key information
Breath generates a response message based on the solicited message, and return to the response message, otherwise, refuses if it is legal information
Exhausted returning response information.
In S104 of the embodiment of the present invention, the legitimacy of verification public key and private key information, what using terminal first received
Public key information decrypts the private key information received below, specifically, the public key information is the unique identification with the terminal
The corresponding string data of code information utilizes random number encryption algorithm for encryption when generating the solicited message and private key information
Solicited message, by the exclusive identification code information md5 encryption, by the data after encrypted solicited message and md5 encryption
Output data is formed after combination, terminal is divided using the public key information decryption output data received according to data bit
From, using MD5 decrypt exclusive identification code information, judge whether it is same identification code information, if so, continue decoding request letter
Breath, to demonstrate whether the private key information is legal information.
The present invention in the main purpose of the step is prevented in predeterminable area, and illegal terminal or device usurp legitimate user's letter
Breath, for example, user prepares to pay using two dimensional code, and during this, illegal user may closed during mobile payment
In the careless situation of method user, using its mobile phone barcode scanning, other people properties or identity information are stolen.In of the invention
Hold, the safety that effectively, in time, accurately pushes and ensure that data transmission can be carried out to information.
According to one embodiment of present invention, the present invention provides a kind of intelligent Service information push-delivery apparatus, described device packet
It includes,
Module is obtained, for obtaining the exclusive identification code letter at least one terminal for receiving information to be pushed in specified region
Breath;
First pushing module, the public key information for being randomly generated at least one described terminal push one;
Generation module, for generating solicited message corresponding at least one described terminal exclusive identification code information and private key
Information, and list information is generated based on the exclusive identification code information, the arrangement of the time sequencing of acquisition, using random number plus
Close algorithm generates multiple public key informations identical with terminal quantity;
Second pushing module, for pushing the solicited message and private key information at least one described terminal;
Presetting module, whether for presetting specified region, and being periodically detected has new terminal to enter described specify
In region.
Preferably, the generation module, be also used to based on the exclusive identification code information, the time sequencing of acquisition arrangement come
List information is generated, generates multiple public key informations identical with terminal quantity using random number encryption algorithm,
And
According to the time sequencing, the corresponding solicited message of each terminal exclusive identification code in specified region and private key are generated
Information.
Preferably, described device further includes,
Data encryption module, for being added using random number encryption algorithm when generating the solicited message and private key information
Close solicited message, by the exclusive identification code information md5 encryption, by the number after encrypted solicited message and md5 encryption
According to forming output data after combination.
According to one embodiment of present invention, the present invention provides a kind of terminal, and the terminal includes,
Receiving module, for receiving the pushed information of a specified device in predeterminable area, the pushed information includes public key
Information, solicited message and private key information;
Authentication module, for verifying whether the private key information is legal information using received public key information, specifically,
Exclusive identification code information is decrypted using MD5, judges whether it is same identification code information, if so, continue decoding request information, from
And demonstrate whether the private key information is legal information;
Processing module, for judging whether the pushed information received comes from specified device or other terminals, if it is
It is no, then reject pushed information;
Respond module for generating a response message based on the solicited message, and returns to the response message.
Using method of the invention, so that user in the use process of terminal, receives the device push approved from it
Information, on the one hand ensure that information push safety, still further aspect also ensure information push validity, in addition,
In payment technical field, but also the information of user is prevented to be leaked or cause any property loss in payment process, user ensure that
The safety of information.
Terminal of the present invention, can for mobile terminal may be other can handle information reception, send with
And the terminal of verifying etc., based on actual content of the invention, terminal has communication function, such as make a phone call, using app software and
Functional module identical with existing mobile phone with it is identical in the prior art, this will not be repeated here.
It is obvious to a person skilled in the art that the embodiment of the present invention is not limited to the details of above-mentioned exemplary embodiment,
And without departing substantially from the spirit or essential attributes of the embodiment of the present invention, this hair can be realized in other specific forms
Bright embodiment.Therefore, in all respects, the present embodiments are to be considered as illustrative and not restrictive, this
The range of inventive embodiments is indicated by the appended claims rather than the foregoing description, it is intended that being equal for claim will be fallen in
All changes in the meaning and scope of important document are included in the embodiment of the present invention.It should not be by any attached drawing mark in claim
Note is construed as limiting the claims involved.Furthermore, it is to be understood that one word of " comprising " does not exclude other units or steps, odd number is not excluded for
Plural number.Multiple units, module or the device stated in system, device or terminal claim can also be by the same units, mould
Block or device are implemented through software or hardware.The first, the second equal words are used to indicate names, and are not offered as any specific
Sequence.
Finally it should be noted that embodiment of above is only to illustrate the technical solution of the embodiment of the present invention rather than limits,
Although the embodiment of the present invention is described in detail referring to the above better embodiment, those skilled in the art should
Understand, can modify to the technical solution of the embodiment of the present invention or equivalent replacement should not all be detached from the skill of the embodiment of the present invention
The spirit and scope of art scheme.