This application claims priority to CN Patent Application Ser. No. 201310549241.7 filed 7 Nov. 2013.
The invention relates to the field of communication technology, more particularly to a method and device for obtaining a key.
With the rapid development of communication technology, the functionalities of computer networks become more and more powerful, and users of networks can chat with each other or send messages with each other, such as an email, video, audio, file and image. In order to protect these messages, currently users generally encrypt these messages utilizing a public key generated from fingerprint information, and then decrypt these messages using a private key generated from the fingerprint information, thereby the safety of these messages can be ensured.
However, in the prior art it is required that fingerprint information of a user is extracted by means of a fingerprint sensor, and thereby a public and private key can be obtained. From this, the existing method for obtaining a key is complicated.
In order to overcome the problems existing the prior art, the invention discloses a method and device for obtaining a key, and in the invention the following technical solutions are provided:
In one aspect, the invention provides a method for obtaining a key, comprising:
In another aspect, the invention discloses a device for obtaining a key, comprising:
In order to illustrate more clearly the technical solutions of the embodiments of the invention, the drawings used in the embodiments will be described simply hereinafter. Obviously, the drawings are given by way of example, and for a person skilled in the art, other equivalent drawings can be obtained without departing from the spirit of the invention.
The present invention will be described hereinafter with reference to the accompanying drawings. It is to be noted, however, that the drawings are given only for illustrative purpose and therefore not to be considered as limiting of its scope, for the invention may admit to other equally effective embodiments.
In order to make the object, technical solutions and advantages of the invention more clearly, the embodiments will be described hereinafter more detailedly with reference to drawings.
The embodiment 1 of the invention provides a method for obtaining a key, as shown in
Preferably, between obtaining scan information by scanning the quick response QR code in the quick response key QRkey card and opening the network platform page corresponding to the website link in the QR code, the method also comprises:
Preferably, between opening a network platform page corresponding to the website link in the QR code and obtaining a private key matching with the public key in the QR code, the method further comprises:
Preferably, obtaining a private key matching with the public key in the QR code and sending the private key to a user corresponding to the QRkey card comprises obtaining a run file for a preset function and sending it to the user corresponding to the QRkey card, so that the user corresponding to the QRkey card can run the preset function.
Preferably, the method also comprises destroying the public key in the QR code after obtaining a private key matching with the public key in the QR code.
By means of the method for obtaining a key in this embodiment of the invention, a public key and a private key can be obtained by scanning a QR code in a QRkey card, thus a simple and convenient method for obtaining a key is disclosed. A user can register only by enrolling a user name and a password, thus a convenient and quick registration method is achieved. In the invention, a run file for a preset function can be obtained and sent to a user, such that a user can use a preset function conveniently. Furthermore, in the invention the safety of information can be improved, because the public key in the QR code will be destroyed after the private key matching with the public key in the QR code is obtained, and thus the other users can not obtain the public key and private key.
The embodiment 2 of the invention provides a method for obtaining a key, as shown in
By means of the method for obtaining a key in this embodiment of the invention, a public key and a private key can be obtained by scanning a QR code in a QRkey card, thus a simple and convenient method for obtaining a key is disclosed. A user can register only by enrolling a user name and a password, thus a convenient and quick registration method is achieved. In the invention, a run file for a preset function can be obtained and sent to a user, such that a user can use a preset function conveniently. Furthermore, in the invention the safety of information can be improved, because the public key in the QR code will be destroyed after the private key matching with the public key in the QR code is obtained, and thus the other users can not obtain the public key and private key.
The embodiment 3 of the invention discloses a device for obtaining a key, as shown in
Preferably, as shown in
Preferably, as shown in
Preferably, the second acquisition module 303 also comprises:
Preferably, as shown in
By means of the method for obtaining a key in this embodiment of the invention, a public key and a private key can be obtained by scanning a QR code in a QRkey card, thus a simple and convenient method for obtaining a key is disclosed. A user can register only by enrolling a user name and a password, thus a convenient and quick registration method is achieved. In the invention, a run file for a preset function can be obtained and sent to a user, such that a user can use a preset function conveniently. Furthermore, in the invention the safety of information can be improved, because the public key in the QR code will be destroyed after the private key matching with the public key in the QR code is obtained, and thus the other users can not obtain the public key and private key.
The numberings of the embodiments are given only for description, instead of representing the quality of the embodiments.
A person skilled in the art shall appreciate that, part or all of the steps achieving the above embodiments can be completed by means of hardware, or by instructing related hardware via a program, the program may be stored in a computer-readable storage medium which may be a read only memory (ROM), magnetic disk or optical disc or the like.
The preferred embodiments as above described are not intended for limiting of the invention, any variations, equivalent substitutions, improvement within the spirit and scope of the invention are contained in the extent of protection of the invention.
Number | Date | Country | Kind |
---|---|---|---|
201310549241.7 | Nov 2013 | CN | national |