Summary of the invention
Embodiment of the present invention technical problem to be solved is, a kind of encryption method, system and relevant device are provided, and can be applied in the encryption function that realizes Dui Duojia bank on digital TV terminal by a set of simple encryption.
In order to solve the problems of the technologies described above, the embodiment of the present invention provides a kind of encryption method, comprising:
Digital TV terminal is according to selecting control command to select Yi Ge bank;
Described digital TV terminal extracts the bank identifier of described bank from this locality, and according to described bank identifier, obtains the login page of described bank;
When described digital TV terminal detects need to be encrypted the transmission data associated with described bank time, described digital TV terminal extracts the associated transmission data of the cryptographic algorithm corresponding with described bank identifier and key file pair and described bank and is encrypted from this locality;
Described bank identifier and cryptographic algorithm and the key file corresponding with described bank identifier are that the configuration of described bank obtains by server.
Wherein, at described digital TV terminal, according to before selecting control command selection Yi Ge bank, also comprise:
Described digital TV terminal obtains bank identifier and corresponding cryptographic algorithm and the key file of each bank identifier of all banks in advance from described server.
Wherein, also comprise:
Described digital TV terminal receives and stores bank identifier after the renewal that described server sends and cryptographic algorithm and the key file corresponding with bank identifier after described renewal.
Correspondingly, the embodiment of the present invention also provides a kind of encryption method, comprising:
Server is each bank's configuration bank identifier;
Described server configures corresponding cryptographic algorithm and the key file associated with described cryptographic algorithm according to described bank identifier;
The bank identifier that described server obtains configuration, cryptographic algorithm and key file send to digital TV terminal, so that described digital TV terminal receives and preserve described bank identifier, described cryptographic algorithm and described key file.
Wherein, also comprise:
When described server detects bank information and occur to upgrade, the bank identifier after upgrading and cryptographic algorithm and the key file corresponding with bank identifier after described renewal are sent to described digital TV terminal;
Described bank information comprises at least one in bank identifier, cryptographic algorithm and key file.
Correspondingly, the embodiment of the present invention also provides a kind of digital TV terminal, comprising:
Select module, for selecting Yi Ge bank according to selection control command;
Extraction module, for extract the bank identifier of described bank from this locality, and obtains the login page of described bank according to described bank identifier;
Encrypting module, for when detecting need to be encrypted the transmission data associated with described bank time, extracts the associated transmission data of the cryptographic algorithm corresponding with described bank identifier and key file pair and described bank and is encrypted from this locality;
Described bank identifier and cryptographic algorithm and the key file corresponding with described bank identifier are that the configuration of described bank obtains by server.
Wherein, also comprise:
Bank's acquisition module, for obtaining in advance bank identifier and corresponding cryptographic algorithm and the key file of each bank identifier of all banks from described server.
Wherein, also comprise:
Upgrade receiver module, for receiving and store bank identifier after the renewal that described server sends and cryptographic algorithm and the key file corresponding with bank identifier after described renewal.
Correspondingly, the embodiment of the present invention also provides a kind of server, comprising:
The first configuration module, is used to each bank's configuration bank identifier;
The second configuration module, for configuring corresponding cryptographic algorithm and the key file associated with described cryptographic algorithm according to described bank identifier;
Sending module, sends to digital TV terminal for bank identifier, cryptographic algorithm and the key file that configuration is obtained, so that described digital TV terminal receives and preserve described bank identifier, described cryptographic algorithm and described key file.
Wherein, also comprise:
Upgrade sending module, for when bank information being detected and occur to upgrade, the bank identifier after renewal and cryptographic algorithm and the key file corresponding with bank identifier after described renewal are sent to described digital TV terminal;
Described bank information comprises at least one in bank identifier, cryptographic algorithm and key file.
Correspondingly, the embodiment of the present invention also provides a kind of encryption system, comprises server and digital TV terminal;
Described server, be used to each bank's configuration bank identifier, according to described bank identifier, configure corresponding cryptographic algorithm and the key file associated with described cryptographic algorithm again, the bank identifier finally configuration being obtained, cryptographic algorithm and key file send to digital TV terminal;
Described digital TV terminal, for receiving and preserve the described bank identifier being sent by described server, described cryptographic algorithm and described key file, also for selecting Yi Ge bank according to selection control command, from this locality, extract again the bank identifier of described bank, and according to described bank identifier, obtain the login page of described bank, when detecting need to be encrypted the transmission data associated with described bank time, from this locality, extract the associated transmission data of the cryptographic algorithm corresponding with described bank identifier and key file pair and described bank and be encrypted.
Implement the embodiment of the present invention, there is following beneficial effect:
The digital TV terminal that the embodiment of the present invention provides is by obtaining bank identifier and cryptographic algorithm and the key file corresponding with bank identifier can be encrypted the associated transmission data of selected bank by a public encipher interface from server, make digital TV terminal that a set of encryption application only need be installed and can realize the encryption function of Dui Duojia bank, thereby reduced the burden of digital TV terminal, also reduced encrypting the maintenance cost of application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, the schematic flow sheet of a kind of encryption method providing for the embodiment of the present invention, described method comprises:
S101, digital TV terminal is according to selecting control command to select Yi Ge bank;
Concrete, digital TV terminal is according to selecting control command to select Yi Ge bank, wherein, described selection control command can be that remote controller sends to the instruction of digital TV terminal after the selection operation through user, digital TV terminal receives described selection control command, and chooses corresponding bank according to described selection control command.
S102, described digital TV terminal extracts the bank identifier of described bank from this locality, and according to described bank identifier, obtains the login page of described bank;
Concrete, at digital TV terminal, according to after selecting control command selection Yi Ge bank, can extract from this locality the bank identifier of described bank, and according to described bank identifier, obtain the login page of described bank, to show described login page.For example, when user wants to use A bank to carry out TV bank payment, digital TV terminal can be selected A bank according to user's clicking operation, and from this locality, extracts the bank identifier of A bank, then according to described bank identifier, obtains and show the login page of A bank.Before digital TV terminal is selected bank, digital TV terminal can have been deposited bank identifier corresponding to each bank in advance, and with each bank identifier cryptographic algorithm and key file one to one, wherein, described bank identifier, cryptographic algorithm and key file are all downloaded from server, be that server is in advance for each bank configures corresponding bank identifier, cryptographic algorithm and key file, and by the bank identifier configuring, cryptographic algorithm and key file send to digital TV terminal, make digital TV terminal preserve received bank identifier, cryptographic algorithm and key file, with the transmission data associated with bank to follow-up, be encrypted, the server that described server can provide for radio and TV operator.
S103, when described digital TV terminal detects need to be encrypted the transmission data associated with described bank time, described digital TV terminal extracts the associated transmission data of the cryptographic algorithm corresponding with described bank identifier and key file pair and described bank and is encrypted from this locality;
Concrete, described bank identifier, cryptographic algorithm and key file are obtained according to the configuration of described bank by server.When described digital TV terminal detects while needing the transmission data of Dui Yu bank association to be encrypted, digital TV terminal can first call public encipher interface, then extracts cryptographic algorithm and the key file corresponding with described bank identifier from this locality.Described digital TV terminal is encrypted according to the cryptographic algorithm transmission data associated with key file Dui Yu bank of extracting.
The specific implementation process of the encryption method that the embodiment of the present invention provides can be: digital TV terminal receives user and clicks the instruction that enters TV bank system, show all TV bank menus, reception user clicks and selects the wherein selection control command of Yi Jia bank, obtain the bank identifier of the bank of user's selection, according to described bank identifier, obtain the login page of this bank.This login page can be to be stored in advance in digital TV terminal, can be also that digital TV terminal obtains from server according to bank identifier.When user carries out the business associated with bank, whether the digital TV terminal judgement transmission data associated with bank need to encrypt, when judgement need to be encrypted, digital TV terminal calls public encipher interface, and the cryptographic algorithm transmission data associated with key file ,Yi Duiyu bank corresponding to bank of extracting user's selection are encrypted.For server side, server first configures corresponding bank identifier to all banks, for example: Bank Name, bank's coding, bank's home address are managed for configuration, described server is encrypted application to each bank's registration again, and before registering encryption application, as each bank, select corresponding cryptographic algorithm and key file, described key file can be provided by bank; Server can be examined encrypting application log-on message, when audit is passed through, server will send to digital TV terminal bank identifier, cryptographic algorithm and key file, to provide digital TV terminal to be encrypted the follow-up transmission data associated with bank.
The digital TV terminal that the embodiment of the present invention provides is by obtaining bank identifier and cryptographic algorithm and the key file corresponding with bank identifier can be encrypted the associated transmission data of selected bank by a public encipher interface from server, make digital TV terminal that a set of encryption application only need be installed and can realize the encryption function of Dui Duojia bank, thereby reduced the burden of digital TV terminal, also reduced encrypting the maintenance cost of application.
Refer to again Fig. 2, the schematic flow sheet of the another kind of encryption method providing for the embodiment of the present invention, described method comprises:
S201, described digital TV terminal obtains bank identifier and corresponding cryptographic algorithm and the key file of each bank identifier of all banks in advance from described server;
Concrete, described bank identifier comprises at least one in Bank Name, bank's coding and bank's home address.Digital TV terminal is saved in the fixed position in digital TV terminal memory after having obtained described bank identifier and the cryptographic algorithm and key file corresponding with described bank identifier.Described bank identifier, cryptographic algorithm and key file send on described digital TV terminal during by security audit at described server.
S202, digital TV terminal is according to selecting control command to select Yi Ge bank;
Concrete, digital TV terminal is according to selecting control command to select Yi Ge bank, wherein, described selection control command can be that remote controller sends to the instruction of digital TV terminal after the selection operation through user, digital TV terminal receives described selection control command, and chooses corresponding bank according to described selection control command.
S203, described digital TV terminal extracts the bank identifier of described bank from this locality, and according to described bank identifier, obtains the login page of described bank;
Concrete, at digital TV terminal, according to after selecting control command selection Yi Ge bank, from this locality, extract the bank identifier of described bank, and according to described bank identifier, obtain the login page of described bank, to show described login page.For example, when user wants to use A bank to carry out TV bank payment, digital TV terminal can be selected A bank according to user's clicking operation, and from this locality, extracts the bank identifier of A bank, then according to described bank identifier, obtains and show the login page of A bank.
S204, when described digital TV terminal detects need to be encrypted the transmission data associated with described bank time, described digital TV terminal extracts the associated transmission data of the cryptographic algorithm corresponding with described bank identifier and key file pair and described bank and is encrypted from this locality;
Concrete, when described digital TV terminal detects while needing the transmission data of Dui Yu bank association to be encrypted, digital TV terminal can first call public encipher interface, and the corresponding bank identifier of the bank of selection is set to call parameters, described digital TV terminal calls by described call parameters the cryptographic algorithm corresponding with this bank identifier and the key file being kept in this digital TV terminal again.Described digital TV terminal is encrypted according to the cryptographic algorithm transmission data associated with key file Dui Yu bank of extracting.
The described digital TV terminal that the embodiment of the present invention provides can also receive and store bank identifier after the renewal that described server sends and cryptographic algorithm and the key file corresponding with bank identifier after described renewal;
Concrete, when server detects newly-increased bank identifier, cryptographic algorithm and key file, or when original bank identifier, cryptographic algorithm and key file change, described server can upgrade bank identifier, cryptographic algorithm and key file; Now, digital TV terminal can response server renewal operation, be that digital TV terminal receives bank identifier, cryptographic algorithm and the key file after the renewal that described server sends, and bank identifier, cryptographic algorithm and key file after upgrading are kept to local bank information storing path.
The digital TV terminal that the embodiment of the present invention provides is by obtaining bank identifier and cryptographic algorithm and the key file corresponding with bank identifier can be encrypted the associated transmission data of selected bank by a public encipher interface from server, make digital TV terminal that a set of encryption application only need be installed and can realize the encryption function of Dui Duojia bank, thereby reduced the burden of digital TV terminal, also reduced encrypting the maintenance cost of application; By server, bank identifier, cryptographic algorithm and key file after upgrading are sent to digital TV terminal, can guarantee the correct bank information that obtains that digital TV terminal can be real-time.
Refer to again Fig. 3, the schematic flow sheet of another encryption method providing for the embodiment of the present invention, described method comprises:
S301, server is each bank's configuration bank identifier;
Described bank identifier comprises Bank Name, bank's coding, bank's home address.
S302, described server configures corresponding cryptographic algorithm and the key file associated with described cryptographic algorithm according to described bank identifier;
S303, the bank identifier that described server obtains configuration, cryptographic algorithm and key file send to digital TV terminal, so that described digital TV terminal receives and preserve described bank identifier, described cryptographic algorithm and described key file;
At server, be that described bank configures after bank identifier, cryptographic algorithm and key file, described server can send to digital TV terminal by described bank identifier, cryptographic algorithm and key file, so that described digital TV terminal receives and preserve described bank identifier, described cryptographic algorithm and described key file, allow the digital TV terminal be that the follow-up transmission data associated with bank are encrypted by described bank identifier, described cryptographic algorithm and described key file.
When described server detects bank information and occur to upgrade, the bank identifier after upgrading and cryptographic algorithm and the key file corresponding with bank identifier after described renewal can be sent to described digital TV terminal;
Described bank information comprises at least one in bank identifier, cryptographic algorithm and key file.
The digital TV terminal that the embodiment of the present invention provides is by obtaining bank identifier and cryptographic algorithm and the key file corresponding with bank identifier can be encrypted the associated transmission data of selected bank by a public encipher interface from server, make digital TV terminal that a set of encryption application only need be installed and can realize the encryption function of Dui Duojia bank, thereby reduced the burden of digital TV terminal, also reduced encrypting the maintenance cost of application; By server, bank identifier, cryptographic algorithm and key file after upgrading are sent to digital TV terminal, can guarantee the correct bank information that obtains that digital TV terminal can be real-time.
Refer to Fig. 4, the structural representation of a kind of encryption system providing for the embodiment of the present invention, described system comprises: server 2 and digital TV terminal 1;
Described server 2, be used to each bank's configuration bank identifier, according to described bank identifier, configure corresponding cryptographic algorithm and the key file associated with described cryptographic algorithm again, the bank identifier finally configuration being obtained, cryptographic algorithm and key file send to digital TV terminal 1;
Described digital TV terminal 1, for receiving and preserve described bank identifier, described cryptographic algorithm and the described key file being sent by described server 2, also for selecting Yi Ge bank according to selection control command, from this locality, extract again the bank identifier of described bank, and according to described bank identifier, obtain the login page of described bank, when detecting need to be encrypted the transmission data associated with described bank time, from this locality, extract the associated transmission data of the cryptographic algorithm corresponding with described bank identifier and key file pair and described bank and be encrypted.
The digital TV terminal 1 that the embodiment of the present invention provides is by obtaining bank identifier and cryptographic algorithm and the key file corresponding with bank identifier can be encrypted the associated transmission data of selected bank by a public encipher interface from server 2, make 1 of digital TV terminal need to install a set of encryption application and can realize the encryption function of Dui Duojia bank, thereby reduced the burden of digital TV terminal 1, also reduced encrypting the maintenance cost of application.
Below the server 2 in Fig. 4 and digital TV terminal 1 are described in detail.
Concrete, refer to Fig. 5, the structural representation of a kind of digital TV terminal 1 providing for the embodiment of the present invention, described digital TV terminal 1 can comprise: select module 11, extraction module 12, encrypting module 13;
Described selection module 11, for selecting Yi Ge bank according to selection control command;
Concrete, described selection module 11 can be according to selecting control command to select Yi Ge bank, wherein, described selection control command can be that remote controller sends to the instruction of described selection module 11 after the selection operation through user, described selection module 11 receives described selection control command, and chooses corresponding bank according to described selection control command.
Described extraction module 12, for extract the bank identifier of described bank from this locality, and obtains the login page of described bank according to described bank identifier;
Concrete, after described selection module 11 is selected Yi Ge bank according to selection control command, described extraction module 12 can extract from this locality the bank identifier of described bank, and according to described bank identifier, obtains the login page of described bank, to show described login page.For example, when user wants to use A bank to carry out TV bank payment, described selection module 11 can be selected A bank according to user's clicking operation, and from this locality, extracts the bank identifier of A bank by described extraction module 12, then according to described bank identifier, obtains and show the login page of A bank.
Described encrypting module 13, for when detecting need to be encrypted the transmission data associated with described bank time, extracts the associated transmission data of the cryptographic algorithm corresponding with described bank identifier and key file pair and described bank and is encrypted from this locality;
Concrete, after described selection module 11 is extracted the bank identifier of described bank from this locality, whether the transmission data that described encrypting module 13 can detect the association of Yu Gai bank need to encrypt, when described encrypting module 13 detects while needing the transmission data of Dui Yu bank association to be encrypted, described encrypting module 13 can first call public encipher interface, from this locality, extract cryptographic algorithm and the key file corresponding with described bank identifier, described bank identifier, cryptographic algorithm and key file are obtained according to the configuration of described bank by server 2 again.Described bank identifier, cryptographic algorithm and key file send on described digital TV terminal 1 during by security audit at described server 2.Described encrypting module 13 is encrypted according to the cryptographic algorithm transmission data associated with key file Dui Yu bank of extracting.
Refer to again Fig. 6, the structural representation of the another kind of digital TV terminal 1 providing for the embodiment of the present invention, described digital TV terminal 1 can comprise selection module 11, extraction module 12, the encrypting module 13 in the corresponding embodiment of above-mentioned Fig. 5, further, described digital TV terminal 1 can also comprise: bank's acquisition module 14, renewal receiver module 15;
Described bank acquisition module 14, for obtaining in advance bank identifier and corresponding cryptographic algorithm and the key file of each bank identifier of all banks from described server 2;
Wherein, described bank identifier comprises at least one in Bank Name, bank's coding and bank's home address.
Described renewal receiver module 15, for receiving and store bank identifier after the renewal that described server 2 sends and cryptographic algorithm and the key file corresponding with bank identifier after described renewal;
Concrete, when server 2 detects newly-increased bank identifier, cryptographic algorithm and key file, or when original bank identifier, cryptographic algorithm and key file change, described server 2 can upgrade bank identifier, cryptographic algorithm and key file; Now, described renewal receiver module 15 can response server 2 renewal operation, be that described renewal receiver module 15 receives bank identifier, cryptographic algorithm and the key file after the renewal that described server 2 sends, and bank identifier, cryptographic algorithm and key file after upgrading are kept to local bank information storing path.
The digital TV terminal 1 that the embodiment of the present invention provides is by obtaining bank identifier and cryptographic algorithm and the key file corresponding with bank identifier can be encrypted the associated transmission data of selected bank by a public encipher interface from server 2, make 1 of digital TV terminal need to install a set of encryption application and can realize the encryption function of Dui Duojia bank, thereby reduced the burden of digital TV terminal 1, also reduced encrypting the maintenance cost of application.
Refer to again Fig. 7, the structural representation of a kind of server 2 providing for the embodiment of the present invention, described server 2 comprises: the first configuration module 21, the second configuration module 22, sending module 23;
Described the first configuration module 21, is used to each bank's configuration bank identifier;
Described bank identifier comprises Bank Name, bank's coding, bank's home address.
Described the second configuration module 22, for configuring corresponding cryptographic algorithm and the key file associated with described cryptographic algorithm according to described bank identifier;
Described sending module 23, sends to digital TV terminal 1 for bank identifier, cryptographic algorithm and the key file that configuration is obtained, so that described digital TV terminal 1 receives and preserve described bank identifier, described cryptographic algorithm and described key file;
At described the first configuration module 21, it is described bank configuration bank identifier, and after being described bank configuration cryptographic algorithm and key file by described the second configuration module 22, described sending module 23 can be by described bank identifier, cryptographic algorithm and key file send to digital TV terminal 1, so that described digital TV terminal 1 receives and preserves described bank identifier, described cryptographic algorithm and described key file, allow digital TV terminal 1 can pass through described bank identifier, described cryptographic algorithm and described key file are that the follow-up transmission data associated with bank are encrypted.
Refer to again Fig. 8, the structural representation of the another kind of server 2 providing for the embodiment of the present invention, described server 2 can comprise the first configuration module 21, the second configuration module 22, the sending module 23 in the corresponding embodiment of above-mentioned Fig. 7, further, described server 2 can also comprise: upgrade sending module 24;
Described renewal sending module 24, for when bank information being detected and occur to upgrade, sends to described digital TV terminal 1 by the bank identifier after upgrading and cryptographic algorithm and the key file corresponding with bank identifier after described renewal;
Described bank information comprises at least one in bank identifier, cryptographic algorithm and key file.
The digital TV terminal 1 that the embodiment of the present invention provides is by obtaining bank identifier and cryptographic algorithm and the key file corresponding with bank identifier can be encrypted the associated transmission data of selected bank by a public encipher interface from server 2, make 1 of digital TV terminal need to install a set of encryption application and can realize the encryption function of Dui Duojia bank, thereby reduced the burden of digital TV terminal 1, also reduced encrypting the maintenance cost of application.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.