Method for managing fingerprint and system thereof
The present disclosure discloses a method for managing a fingerprint and a system thereof, which relates to the field of information technology. The method includes that an upper computer builds a connection with a fingerprint card; the upper computer receives an operation from a user and determines a type of the operation, the upper computer sends the collecting fingerprint instruction to the fingerprint card and the fingerprint card collects a fingerprint and returns a collecting fingerprint response to the upper computer if the operation is a collecting fingerprint operation; the upper computer sends the managing fingerprint instruction to the fingerprint card, the fingerprint card finishes a managing operation on the fingerprint according to the managing fingerprint instruction and returns the managing fingerprint response to the upper computer if the operation is a managing fingerprint operation; and the method further comprises the server authenticates the user information.
1. A method for managing a fingerprint, comprising:
Step S 1 , building, by an upper computer, a connection with a fingerprint card;
Step S 2 , receiving, by the upper computer, an operation from a user;
Step S 3 , determining, by the upper computer, a type of the operation from the user, in the case that the operation is a collecting fingerprint operation, sending, by the upper computer, a collecting fingerprint instruction to the fingerprint card, collecting, by the fingerprint card, a fingerprint and returning a collecting fingerprint response to the upper computer; in the case that the operation is a managing fingerprint operation, sending, by the upper computer, the managing fingerprint instruction to the fingerprint card, finishing, by the fingerprint card, a managing operation on the fingerprint according to the managing fingerprint instruction, and returning the managing fingerprint response to the upper computer;
wherein Step S 1 further comprises: receiving, by a server, user information sent from the upper computer and authenticating the user information; and
wherein after the server authenticates the user information, the method further comprises: obtaining, by the server, fingerprint card information from its own database according the user information, obtaining applicant information according to the fingerprint card information, and determining whether the applicant information matches the user information sent from the upper computer, if yes, sending an authentication success response; otherwise, sending an authentication failure response.
2. The method as claimed in claim 1 , wherein Step S 1 further comprises: obtaining, by the upper computer, the user information and sending the user information to the server; and
the receiving, by a server, the user information sent from the upper computer and authenticating the user information specifically is: receiving, by the server, the user information sent from the upper computer and searching from its own database for information which is compared with the user information, in the case that the information is found and is compared successfully with the user information, sending a response that the user information is authenticated successfully to the upper computer; otherwise, sending a response that the user information is authenticated unsuccessfully to the upper computer.
3. The method as claimed in claim 1 , wherein before the upper computer sends the collecting fingerprint instruction to the fingerprint card, the method further comprises: obtaining, by the upper computer, fingerprint information from the fingerprint card, determining whether any fingerprint is entered the fingerprint card according to the fingerprint information, if yes, ending the method; otherwise, sending the collecting fingerprint instruction to the fingerprint card.
4. The method as claimed in claim 1 , wherein the managing fingerprint instruction comprises an adding fingerprint instruction; and
the sending the managing fingerprint instruction to the fingerprint card, finishing, by, the fingerprint card, a managing operation on the fingerprint according to the managing fingerprint instruction, and returning the managing fingerprint response to the upper computer comprises: sending, by the upper computer, the adding fingerprint instruction to the fingerprint card, collecting, by the fingerprint card, a fingerprint, and returning an adding fingerprint response to the upper computer.
5. The method as claimed in claim 4 , wherein before the upper computer sends the adding fingerprint instruction to the fingerprint card, the method further comprises: obtaining, by the upper computer, fingerprint information from the fingerprint card, and determining whether any fingerprint can be added in the fingerprint card according to the fingerprint information, if yes, sending the collecting fingerprint instruction to the fingerprint card; otherwise, the fingerprint is added unsuccessfully, and reporting an error.
6. The method as claimed in claim 1 , wherein, the managing fingerprint instruction comprises a deleting fingerprint instruction; and
the sending the managing fingerprint instruction to the fingerprint card, finishing, by the fingerprint card, a managing operation on the fingerprint according to the managing fingerprint instruction, and returning the managing fingerprint response to the upper computer comprises: sending, by the upper computer, the deleting fingerprint instruction to the fingerprint card, deleting, by the fingerprint card, the fingerprint, and returning the deleting fingerprint response to the upper computer.
7. The method as claimed in claim 6 , wherein before the upper computer sends the deleting fingerprint instruction to the upper computer, the method further comprises: obtaining, by the upper computer, fingerprint information from the fingerprint card, determining whether any fingerprint can be deleted according to the fingerprint information, if yes, sending the deleting fingerprint instruction to the fingerprint card; otherwise, the fingerprint is deleted unsuccessfully, and reporting an error.
8. The method as claimed in claim 1 , wherein collecting, by the fingerprint card, a fingerprint further comprises: determining, by the fingerprint card, whether any user fingerprint is collected within a preset duration, if yes, returning a response that fingerprint is collected successfully to the upper computer; otherwise, returning a response that the fingerprint is collected overtime to the upper computer.
9. The method as claimed in claim 1 , wherein the sending, by the upper computer, a collecting fingerprint instruction to the fingerprint card specifically is: sending, by the upper computer, the collecting fingerprint instruction to the server, encrypting, by the server the collecting fingerprint instruction and sending the collecting fingerprint instruction which is encrypted to the upper computer, sending, by the upper computer, the collecting fingerprint instruction which is encrypted to the fingerprint card.
10. A system for managing a fingerprint, comprising: an upper computer, a fingerprint card and a server;
wherein the upper computer comprises:
at least one first processor;
a first communication interface connected with the at least one first processor; and
a first memory connected with the at least one first processor;
wherein first instructions, when executed by the at least one first processor, cause the at least one first processor to:
build a connection with the fingerprint card;
receive, through the first communication interface, an operation from a user;
determine a type of the operation from the user;
send, through the first communication interface, a collecting fingerprint instruction to the fingerprint card in the case that the at least one first processor determines that the operation is a collecting fingerprint operation; and send, through the first communication interface, a managing fingerprint instruction to the fingerprint card in the case that the at least one first processor determines that the operation is a managing fingerprint operation;
receive, through the first communication interface, a collecting fingerprint response returned from the fingerprint card; and further receive, through the first communication interface, the managing fingerprint response returned from the fingerprint card;
the fingerprint card comprises:
at least one second processor;
a second communication interface connected with the at least one second processor; and
a second memory connected with the at least one second processor;
wherein second instructions, when executed by the at least one second processor, cause the at least one second processor to:
receive, through the second communication interface, the collecting fingerprint instruction sent from the upper computer; and further receive, through the second communication interface, the managing fingerprint instruction sent from the upper computer;
collect a fingerprint according to the collecting fingerprint instruction received by the second communication interface and obtain a collecting fingerprint response;
finish a managing operation on the fingerprint according to the managing fingerprint instruction received by the second communication interface to obtain a managing fingerprint response;
return the collecting fingerprint response obtained by the at least one second processor to the upper computer; and return the managing fingerprint response obtained by the at least one second processor to the upper computer; and
the server comprises:
at least one third processor;
a third communication interface connected with the at least one third processor; and
a third memory connected with the at least one third processor;
wherein third instructions, when executed by the at least one third processor, cause the at least one third processor to:
receive, through the third communication interface, user information sent from the upper computer; and
authenticate the user information received by the third communication interface;
wherein the at least one third processor is further configured to:
obtain the fingerprint card information from its own database according to the user information, obtain applicant information according to the fingerprint card information, and determine whether the applicant information matches the user information sent from the upper computer; and
send, through the third communication interface, an authentication success response to the upper computer in the case that the at least one third processor determines that the applicant information matches the user information; and send, through the third communication interface, an authentication failure response in the case that the at least one third processor determines that the applicant information does not match the user information.
11. The system as claimed in claim 10 , wherein the at least one first processor is further configured to:
obtain the user information;
send, through the first communication interface, the user information to the server;
the at least one third processor is further configured to:
search from its own database for information which is compared with the user information; and
send, through the third communication interface, a response that the user information is authenticated successfully in the case that the at least one third processor finds the information which is compared with the user information successfully; and send, through the third communication interface, a response that the user information is authenticated unsuccessfully in the case that the at least one third processor dose not find the information or the information is compared with the user information unsuccessfully.
12. The system as claimed in claim 10 , wherein the at least one first processor is further configured to:
obtain fingerprint information from the fingerprint card;
determine whether any fingerprint is entered the fingerprint card according to the fingerprint information, if yes, ending the method; and
send, through the first communication interface, the collecting fingerprint instruction to the fingerprint card in the case that the at least one first processor determines that no fingerprint is entered the fingerprint card.
13. The system as claimed in claim 10 , wherein the managing fingerprint instruction is an adding fingerprint instruction;
the at least one first processor is further configured to:
send, through the first communication interface, the adding fingerprint instruction to the fingerprint card;
receive, through the first communication interface, an adding fingerprint response returned from the fingerprint card;
the at least one second processor is further configured to:
receive, through the second communication interface, the adding fingerprint instruction sent from the upper computer;
collect a fingerprint according to the adding fingerprint instruction received by the second communication interface; and
return the adding fingerprint response to the upper computer.
14. The system as claimed in claim 13 , wherein the at least one first processor is further configured to:
obtain fingerprint information from the fingerprint card;
determine whether the fingerprint card has entered a fingerprint according to the fingerprint information; and
send, through the first communication interface, the collecting fingerprint instruction to the fingerprint card in the case that a determination determined by the at least one first processor is yes; and the fingerprint is added unsuccessfully in the case that the determination determined by the at least one first processor is no, and an error is reported.
15. The system as claimed in claim 10 , wherein the managing fingerprint instruction is a deleting fingerprint instruction;
the at least one first processor is further configured to:
send, through the first communication interface, the deleting fingerprint instruction to the fingerprint card;
receive, through the first communication interface, the deleting fingerprint response returned from the fingerprint card;
the at least one second processor is further configured to:
receive, through the second communication interface, the deleting fingerprint instruction sent from the upper computer;
delete the fingerprint according to the deleting fingerprint instruction received by the second communication interface; and
return the deleting fingerprint response to the upper computer.
16. The system as claimed in claim 15 , wherein the at least one first processor is further configured to:
obtain fingerprint information from the fingerprint card;
determine whether any fingerprint can be deleted from the fingerprint card according to the fingerprint information; and
send, through the first communication interface, the deleting fingerprint instruction to the fingerprint card when a determination determined by the at least one first processor is yes; and the fingerprint is deleted unsuccessfully and an error is reported when the determination is determined by the at least one first processor is no.
17. The system as claimed in claim 10 , wherein the at least one first processor is further configured to:
send, through the first communication interface, the collecting fingerprint instruction to the server; and receive, through the first communication interface, the collecting fingerprint instruction which is encrypted sent from the server;
the at least one third processor is further configured to:
receive, through the third communication interface, the collecting fingerprint instruction sent from the upper computer;
encrypt the collecting fingerprint instruction received by the third communication interface;
send, through the third communication interface, the collecting fingerprint instruction which is encrypted by the at least one third processor to the upper computer; and
the at least one first processor is further configured to:
send, through the first communication interface, the collecting fingerprint instruction which is encrypted to the fingerprint card.
18. The system as claimed in claim 10 , wherein the at least one first processor is further configured to:
send, through the first communication interface, the collecting fingerprint instruction to the server; and receive the managing fingerprint instruction which is encrypted sent from the server;
the at least one third processor is further configured to:
receive, through the third communication interface, the managing fingerprint instruction sent from the upper computer;
encrypt the managing fingerprint instruction received by the third communication interface;
send, through the third communication interface, the managing fingerprint instruction which is encrypted by the at least one third processor to the upper computer; and
the at least one first processor is further configured to:
send, through the first communication interface, the managing fingerprint instruction which is encrypted to the fingerprint card.