Method, device and terminal for realizing authentication
Technical Field
The present invention relates to device application technologies, and in particular, to a method, a device, and a terminal for implementing authentication.
Background
Currently, as devices for processing daily affairs and life entertainment, terminals (mobile phones, tablets and the like) store more and more user information, wherein the privacy of users is involved, such as private logs of users, personal audio and video files, important work logs or memorandum logs and the like. In order to ensure the security of the privacy of the user, the screen display of the terminal and the application in the terminal need to be authenticated to obtain corresponding authority, so that the terminal or the application can be used. Taking the terminal screen display as an example, the privacy security of the user and the locking of the terminal screen display are ensured for example, and the conversion from simple sliding unlocking and pressing unlocking to higher security face recognition, track patterns, PIN codes, digital passwords and the like is realized. Taking the screen display unlocking through the face recognition as an example, assuming that the terminal is set to adopt the face recognition technology to perform the screen display unlocking, the face image information of the user is stored in the terminal in advance; when the screen display unlocking is carried out, the terminal camera device shoots a face image of a user unlocking the terminal, image matching is carried out through an image feature extraction method, and the screen display unlocking is carried out on the terminal when the situation that the user unlocking the terminal is the same as the user storing the face image information is determined.
Face identification, track pattern, PIN code, digital code etc. have guaranteed user's privacy to a certain extent, but current unlocking method still has certain problem: for example, face recognition has a problem that it can be unlocked by using a still picture; PIN codes, track patterns and digital passwords have the problem of being easy to crack.
In summary, in the existing unlocking method, the face recognition can adopt static picture unlocking, PIN codes, track patterns and digital passwords are easy to crack; the authentication method applied in the terminal is basically the same as the screen display unlocking authentication method, so that the safety of the user privacy can not be guaranteed even if the user identity is authenticated by the existing authentication method.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method, a device and a terminal for realizing authentication, which can ensure the user identity authentication on terminal display and terminal application and ensure the privacy safety of a user.
In order to achieve the object of the present invention, the present invention provides a method for implementing authentication, comprising:
acquiring skin impedance information of a user;
and matching the obtained skin impedance information with the prestored matching impedance information, and passing authentication when the obtained skin impedance information is the same as the prestored matching impedance information.
Further, acquiring skin impedance information of the user specifically includes:
scanning the skin of a finger of a user at a preset frequency point through a preset sine wave signal to generate skin scanning data;
sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points;
generating the skin impedance information from the obtained impedance magnitude.
Further, before the sampling operation is performed on the skin scan data, the method further includes:
judging whether the skin scanning data comprise skin scanning data of all preset frequency points; and when the skin scanning data of all the preset frequency points are not included, determining the non-included preset frequency points, and scanning the skin of the finger of the user by using the preset frequency points until the skin scanning of all the preset frequency points is finished.
Further, scanning the skin of the finger of the user at a preset frequency point specifically includes:
when an external circuit of the skin impedance analysis chip or two metal reeds preset with a preset distance on a terminal key is contacted with the skin of a finger of a user,
and scanning the skin of the finger of the user according to the sine wave signal and preset frequency points.
Further, the preset spacing is: the distance that a user can simultaneously get contact with one finger.
Further, the preset frequency points are:
the preset minimum frequency point is used as a basic frequency point, and the basic frequency point is used as each preset frequency point of the frequency multiplication.
Further, the preset frequency point is an arbitrary frequency point having a frequency of 5KHZ or more.
Further, the matching the obtained skin impedance information with the pre-stored matching impedance information specifically includes:
extracting corresponding amplitudes of the skin impedance information and the matched impedance information of each frequency point;
calculating the standard deviation of the amplitudes of the skin impedance information and the matched impedance information according to the amplitudes of the skin impedance information and the matched impedance information of each frequency point;
and comparing the standard deviation of the amplitude value with a preset matching error value, and determining that the obtained skin impedance information is the same as the pre-stored matching impedance information when the standard deviation of the amplitude value is smaller than the matching error value.
Further, the matching error value is:
the amplitude of the matched impedance information of each frequency point is squared and accumulated, and the accumulated value is divided by the number of the frequency points to subtract 1 to obtain a quotient;
and (5) calculating a numerical value obtained by multiplying the quotient by 0.1 after the obtained quotient is subjected to root cutting.
On the other hand, the present application further provides an apparatus for implementing authentication, including: an acquisition unit and a matching authentication unit; wherein,
an acquisition unit for acquiring skin impedance information of a user;
and the matching authentication unit is used for matching the acquired skin impedance information with the pre-stored matching impedance information, and passing authentication when the acquired skin impedance information is the same as the pre-stored matching impedance information.
Further, the obtaining unit is specifically configured to,
scanning the skin of a finger of a user at a preset frequency point through a preset sine wave signal to generate skin scanning data;
sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points;
generating the skin impedance information from the obtained impedance magnitude.
Further, the obtaining unit is further configured to,
before sampling operation is carried out on skin scanning data, whether the skin scanning data contain skin scanning data of all preset frequency points is judged; and when the skin scanning data of all the preset frequency points are not included, determining the non-included preset frequency points, and scanning the skin of the finger of the user by using the preset frequency points until the skin scanning of all the preset frequency points is finished.
Further, the obtaining unit is specifically configured to,
when an external circuit of the skin impedance analysis chip or two metal reeds preset with a preset distance on a terminal key contact the skin of a finger of a user,
according to the sine wave signal, scanning the finger skin of the user according to a preset frequency point to generate skin scanning data;
sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points;
generating the skin impedance information from the obtained impedance magnitude.
Further, the matching authentication unit is specifically configured to,
extracting corresponding amplitudes of the skin impedance information and the matched impedance information of each frequency point;
calculating the standard deviation of the amplitudes of the skin impedance information and the matched impedance information according to the amplitudes of the skin impedance information and the matched impedance information of each frequency point;
and comparing the standard deviation of the amplitude value with a preset matching error value, determining that the obtained skin impedance information is the same as the prestored matching impedance information when the standard deviation of the amplitude value is smaller than the preset matching error value, and passing authentication when the obtained skin impedance information is the same as the prestored matching impedance information.
In another aspect, the present application further provides a terminal for implementing authentication, including: the device comprises a central processing unit, a signal generator, a scanning unit and a storage medium; wherein,
the central processing unit controls the signal generator to generate a preset sine wave signal; presetting frequency points for scanning the skin of the fingers of the user; sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points; generating the skin impedance information according to the obtained impedance amplitude; matching the obtained skin impedance information with pre-stored matching impedance information, and passing authentication when the obtained skin impedance information is the same as the pre-stored matching impedance information;
the scanning unit is used for scanning the finger skin of the user according to the sine wave signal and preset frequency points to generate skin scanning data when the finger skin of the user is contacted;
the storage medium stores matching impedance information for authentication.
Furthermore, the scanning unit is composed of an external circuit of the skin impedance analysis chip or two metal reeds preset at a preset distance on the terminal key.
Further, the central processing unit is also used for,
before sampling operation is carried out on skin scanning data, whether the skin scanning data contain skin scanning data of all preset frequency points is judged; and when the skin scanning data of all the preset frequency points are not contained, determining the non-contained preset frequency points, and scanning the skin of the finger of the user by using an external circuit of the skin impedance analysis chip of the preset frequency points or two metal reeds preset at a preset interval on a terminal key until the skin scanning of all the preset frequency points is finished.
Further, the central processing unit controls the signal generator to generate a preset sine wave signal; presetting frequency points for scanning the skin of the fingers of the user; sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points; generating the skin impedance information according to the obtained impedance amplitude; extracting corresponding amplitudes of the skin impedance information and the matched impedance information of each frequency point;
calculating the standard deviation of the amplitudes of the skin impedance information and the matched impedance information according to the amplitudes of the skin impedance information and the matched impedance information of each frequency point;
and comparing the standard deviation of the amplitude value with a preset matching error value, determining that the obtained skin impedance information is the same as the prestored matching impedance information when the standard deviation of the amplitude value is smaller than the preset matching error value, and passing authentication when the obtained skin impedance information is the same as the prestored matching impedance information.
Compared with the prior art, the technical scheme of the application comprises the following steps: acquiring skin impedance information of a user; and matching the obtained skin impedance information with the prestored matching impedance information, and passing authentication when the obtained skin impedance information is the same as the prestored matching impedance information. The method of the invention passes the authentication through the acquired skin impedance information, and because the skin impedance information can not be copied, the authentication of terminal screen display or terminal application can be ensured only by the user, and the privacy security of the user is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of implementing authentication in accordance with the present invention;
FIG. 2 is a block diagram of an apparatus for implementing authentication according to the present invention;
FIG. 3 is a block diagram of a terminal for implementing authentication according to the present invention;
FIG. 4 is a schematic diagram of a metal reed preset with a preset distance on a terminal key according to a first embodiment of the present invention;
FIG. 5 is a diagram illustrating a skin impedance curve and a matching impedance curve according to a first embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a flowchart of a method for implementing authentication according to the present invention, as shown in fig. 1, when performing terminal authentication, the method includes:
step 100, acquiring skin impedance information of a user;
in this step, acquiring skin impedance information of the user specifically includes:
scanning the skin of a finger of a user at a preset frequency point through a preset sine wave signal to generate skin scanning data;
sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points;
skin impedance information is generated from the obtained impedance magnitude.
Preferably, before the sampling operation is performed on the skin scan data, the method of the present invention further includes:
judging whether the skin scanning data contain skin scanning data of all preset frequency points; and when the skin scanning data of all the preset frequency points are not included, determining the non-included preset frequency points, and scanning the skin of the finger of the user by using the preset frequency points until the skin scanning of all the preset frequency points is finished.
Specifically, scanning the skin of the finger of the user at a preset frequency point includes:
when an external circuit of the skin impedance analysis chip or two metal reeds preset with a preset distance on a terminal key is contacted with the skin of a finger of a user,
and scanning the skin of the finger of the user according to preset frequency points according to the sine wave signal.
The preset spacing is as follows: the distance that a user can simultaneously get contact with one finger. Here, the typical preset spacing is 3-6 mm based on statistical analysis.
It should be noted that the preset distance is mainly set according to the finger contact surface of the user, the distance can be adjusted for users with different regions and different sexes, and the general preset distance is larger than 3 mm, which is beneficial to scanning the skin of the finger of the user. In addition, the metal reed is generally designed using a metal having good conductivity, for example, brass, aluminum, or the like; the shape of the metal reed is not limited generally, but in the industrial design and production process, the metal reed is designed by adopting symmetrical regular patterns generally, so that the metal reed is convenient to produce and attractive in appearance.
The preset frequency points are as follows:
the preset minimum frequency point is used as a basic frequency point, and the basic frequency point is used as each preset frequency point of the frequency multiplication.
Preferably, the predetermined frequency point is an arbitrary frequency point having a frequency of 5KHZ or more.
It should be noted that, in order to avoid being influenced by external factors such as dry skin, moisture and the like, the invention adopts the frequency point of more than 5KHZ to ensure the stability of the scanning information, and the frequency point can be increased in order to ensure the authentication accuracy and stability.
Step 101, matching the obtained skin impedance information with the pre-stored matching impedance information, and passing authentication when the obtained skin impedance information is the same as the pre-stored matching impedance information.
It should be noted that the skin impedance information and the matching impedance information generally refer to a skin impedance curve and a matching impedance curve, or a function representing the curves.
Preferably, matching the obtained skin impedance information with the pre-stored matching impedance information specifically includes:
extracting the skin impedance information of each frequency point and the corresponding amplitude of the matched impedance information;
calculating the standard deviation of the amplitudes of the skin impedance information and the matched impedance information according to the amplitudes of the skin impedance information and the matched impedance information of each frequency point;
and comparing the standard deviation of the amplitude value with a preset matching error value, and determining that the obtained skin impedance information is the same as the pre-stored matching impedance information when the standard deviation of the amplitude value is smaller than the matching error value.
The matching error value is:
the amplitude of the matched impedance information of each frequency point is squared and accumulated, and the accumulated value is divided by the number of the frequency points to subtract 1 to obtain a quotient;
and (5) calculating a numerical value obtained by multiplying the quotient by 0.1 after the obtained quotient is subjected to root cutting.
It should be noted that, according to the requirement of precision, the matching error value may be adjusted accordingly, and the smaller the matching error value, the higher the precision.
The method of the invention passes the authentication through the acquired skin impedance information, and because the skin impedance information can not be copied, the authentication of terminal screen display or terminal application can be ensured only by the user, and the privacy security of the user is improved.
Fig. 2 is a block diagram of a device for implementing authentication according to the present invention, as shown in fig. 2, including: an acquisition unit and a matching authentication unit; wherein,
an acquisition unit for acquiring skin impedance information of a user;
and the matching authentication unit is used for matching the acquired skin impedance information with the pre-stored matching impedance information and performing authentication when the acquired skin impedance information is the same as the pre-stored matching impedance information.
The obtaining unit is specifically configured to obtain,
scanning the skin of a finger of a user at a preset frequency point through a preset sine wave signal to generate skin scanning data;
sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points;
skin impedance information is generated from the obtained impedance magnitude.
The acquisition unit is also configured to,
before sampling operation is carried out on the skin scanning data, whether the skin scanning data contain skin scanning data of all preset frequency points is judged; and when the skin scanning data of all the preset frequency points are not included, determining the non-included preset frequency points, and scanning the skin of the finger of the user by using the preset frequency points until the skin scanning of all the preset frequency points is finished.
The obtaining unit is specifically configured to obtain,
when an external circuit of the skin impedance analysis chip or two metal reeds preset with a preset distance on a terminal key contact the skin of a finger of a user,
according to the sine wave signal, scanning the finger skin of the user according to a preset frequency point to generate skin scanning data;
sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points;
skin impedance information is generated from the obtained impedance magnitude.
The matching authentication unit is specifically configured to,
extracting the skin impedance information of each frequency point and the corresponding amplitude of the matched impedance information;
calculating the standard deviation of the amplitudes of the skin impedance information and the matched impedance information according to the amplitudes of the skin impedance information and the matched impedance information of each frequency point;
and comparing the standard deviation of the amplitude value with a preset matching error value, determining that the obtained skin impedance information is the same as the prestored matching impedance information when the standard deviation of the amplitude value is smaller than the preset matching error value, and passing authentication when the obtained skin impedance information is the same as the prestored matching impedance information.
Fig. 3 is a block diagram of another terminal for implementing authentication according to the present invention, as shown in fig. 3, including: the device comprises a central processing unit, a signal generator, a scanning unit and a storage medium; wherein,
the central processing unit controls the signal generator to generate a preset sine wave signal; presetting frequency points for scanning the skin of the fingers of the user; sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points; generating the skin impedance information according to the obtained impedance amplitude; matching the obtained skin impedance information with pre-stored matching impedance information, and passing authentication when the obtained skin impedance information is the same as the pre-stored matching impedance information;
the scanning unit is used for scanning the finger skin of the user according to the sine wave signal and preset frequency points to generate skin scanning data when the finger skin of the user is contacted;
the scanning unit consists of an external circuit of the skin impedance analysis chip or two metal reeds which are preset at a preset interval on the terminal key.
The storage medium stores matching impedance information for authentication.
The central processing unit is also used for,
before sampling operation is carried out on skin scanning data, whether the skin scanning data contain skin scanning data of all preset frequency points is judged; and when the skin scanning data of all the preset frequency points are not contained, determining the non-contained preset frequency points, and scanning the skin of the finger of the user by using an external circuit of the skin impedance analysis chip of the preset frequency points or two metal reeds preset at a preset interval on a terminal key until the skin scanning of all the preset frequency points is finished.
The central processing unit controls the signal generator to generate a preset sine wave signal; presetting frequency points for scanning the skin of the fingers of the user; sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to preset frequency points; generating the skin impedance information according to the obtained impedance amplitude; extracting corresponding amplitudes of the skin impedance information and the matched impedance information of each frequency point;
calculating the standard deviation of the amplitudes of the skin impedance information and the matched impedance information according to the amplitudes of the skin impedance information and the matched impedance information of each frequency point;
and comparing the standard deviation of the amplitude value with a preset matching error value, determining that the obtained skin impedance information is the same as the prestored matching impedance information when the standard deviation of the amplitude value is smaller than the preset matching error value, and passing authentication when the obtained skin impedance information is the same as the prestored matching impedance information.
The process of the present invention is illustrated in clear detail below by means of specific examples, which are only intended to illustrate the invention and are not intended to limit the scope of the process of the invention.
Example 1
In this embodiment, the present invention is clearly and specifically described through a terminal unlocking process, and a Central Processing Unit (CPU) of the terminal controls a signal generator to generate a preset sine wave signal.
Fig. 4 is a schematic diagram of a metal reed preset with a preset pitch on a terminal key according to a first embodiment of the present invention, as shown in fig. 4, the metal reed with the preset pitch of 3-6 mm is set through the terminal key, and according to a preset sine wave signal, the finger skin of a user contacting the metal reed is scanned at a preset frequency point to generate skin scan data;
when the scanning of the finger skin of all preset frequency points is determined to be completed, sampling operation is carried out on skin scanning data to obtain impedance amplitudes corresponding to the preset frequency points; when the scanning is not finished, scanning the unscanned preset frequency points until all the preset frequency points are scanned, and then carrying out sampling operation on the skin scanning data to obtain the impedance amplitude corresponding to each preset frequency point.
Here, the number and frequency of the frequency points are set by the cpu, and preferably, if f0 is the minimum frequency point, the minimum frequency point is set as a base frequency point, and another predetermined frequency point is set with the base frequency point as a frequency multiplier. That is, f1 ═ 2 × f0, f2 ═ 3 × f0, f3 ═ 4 × f0 … … f (n-1) ═ n × f0 are set.
Skin impedance information is generated from the obtained impedance magnitude.
And matching the obtained skin impedance information with the prestored matching impedance information, and performing authentication when the obtained skin impedance information is the same as the prestored matching impedance information.
Fig. 5 is a schematic diagram of the skin impedance curve and the matching impedance curve according to the first embodiment of the present invention, as shown in fig. 5, wherein the horizontal axis of the coordinate axis represents frequency points and the vertical axis of the coordinate axis represents amplitude values. Let Aix and Ax be the amplitude of skin impedance information and the amplitude of matching impedance information at frequency point fi (i ═ 0 … … n), respectively.
Calculating the standard deviation of the amplitudes of the skin impedance information and the matched impedance information according to the amplitudes of the skin impedance information and the matched impedance information of each frequency point; namely, the standard deviation of the amplitude is calculated by the following formula
In this embodiment, the matching error value is:
the amplitude of the matched impedance information of each frequency point is squared and accumulated, and the accumulated value is divided by the number of the frequency points to subtract 1 to obtain a quotient;
and (5) calculating a numerical value obtained by multiplying the quotient by 0.1 after the obtained quotient is subjected to root cutting. The matching error value can be expressed by the formula:
and when S is less than S, determining that the skin impedance information is the same as the pre-stored matching impedance information, and unlocking the terminal.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.