CN104021324B - The method and device of writing safety check - Google Patents
The method and device of writing safety check Download PDFInfo
- Publication number
- CN104021324B CN104021324B CN201410234419.3A CN201410234419A CN104021324B CN 104021324 B CN104021324 B CN 104021324B CN 201410234419 A CN201410234419 A CN 201410234419A CN 104021324 B CN104021324 B CN 104021324B
- Authority
- CN
- China
- Prior art keywords
- writing
- image
- diff area
- writing data
- similarity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/5846—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using extracted text
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Library & Information Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Telephone Function (AREA)
- Alarm Systems (AREA)
Abstract
The invention discloses a kind of methods of writing safety check, and the method comprising the steps of: when the safety check for receiving user instructs, obtaining the writing data of user's typing;The writing data are carried out similarity according to default writing algorithm with pre-stored criteria writing data to compare, obtain the similarity of the writing data Yu the pre-stored criteria writing data;When the similarity is greater than preset threshold, determine that the user passes through safety check.The invention also discloses a kind of devices of writing safety check to be effectively reduced the probability of hacker attack, improve the safety of information while guaranteeing the simplification of safety check operation.
Description
Technical field
The present invention relates to mobile terminal safety technical field more particularly to the method and devices of writing safety check.
Background technique
Mobile terminal software has also obtained development at full speed with the high speed development of mobile device, and mobile terminal software is special
The processing in mobile service is infused, the safety of mobile service needs certain security mechanism to ensure.Difference is in other tools
There is the mobile application field (such as financial industry) of strong security context, mobile terminal software only exists the safe school of Sign-On mechanism
It tests, lacks reliable security protection means.If Sign-On mechanism is cracked, key business (such as important document of mobile application
Audit) safety not can guarantee.
Currently, carrying out the mode of the safety check of mobile service in existing mobile software are as follows: 1, password authentification: the party
Formula technology maturation, operation are simple;2, dynamic password verification: the program is more advanced, highly-safe.
However, the defect of above-mentioned password authentification is: safety coefficient is low, is easy to be broken through by hacker, leads to mobile service system
The important information of system leaks.
The defect of above-mentioned dynamic password verification is: technical solution is complicated, needs to put into the corresponding software and hardware of dynamic password,
Early investment is larger.And dynamic password card need to be carried, it is inconvenient to use.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main object of the present invention is to provide the method and device of writing safety check, in the letter for guaranteeing safety check operation
While easy property, the probability of hacker attack is effectively reduced, improves the safety of information.
To achieve the above object, the present invention provides a kind of method of writing safety check, and the method comprising the steps of:
When the safety check for receiving user instructs, the writing data of user's typing are obtained;
The writing data are carried out similarity according to default writing algorithm with pre-stored criteria writing data to compare, obtain institute
State the similarity of writing data Yu the pre-stored criteria writing data;
When the similarity is greater than preset threshold, determine that the user passes through safety check.
Preferably, after the step of similarity for obtaining the writing data and the pre-stored criteria writing data,
This method further include:
When the similarity is less than or equal to preset threshold, corresponding writing image is extracted from the writing data;
It determines the diff area in the writing image with the pre-stored criteria writing image, obtains the standard writing figure
The image-region corresponding with determining diff area as in;
The difference value for obtaining determining diff area and described image region meets default difference condition in the difference value
When, determine that the user passes through safety check;
When the difference value is unsatisfactory for default difference condition, determine that the user does not pass through safety check.
Preferably, the diff area in the determination writing image with the pre-stored criteria writing image obtains institute
The step of stating image-region corresponding with determining diff area in standard writing image replacement are as follows:
Determine the diff area in the writing image with the pre-stored criteria writing image, and by determining diff area
Image is carried out according to the default writing algorithm with pre-stored criteria diff area to compare;
When the diff area of the determination is matched with the pre-stored criteria diff area, the standard writing image is obtained
In image-region corresponding with the diff area of the determination.
Preferably, described when the difference value meets default difference condition, determine that the user passes through safety check
After step, this method is further comprised the steps of:
According to the mapping relations of difference value and similarity regulated value, the corresponding similarity regulated value of the difference value is determined,
And the preset threshold is updated according to the similarity regulated value.
Preferably, this method further include:
Multiple identical writing data are acquired, determines that a writing data are used as at random from the writing data of acquisition and prestores
Standard writing data;
It determines the corresponding writing image of each writing data, and obtains the diff area between writing image two-by-two, from obtaining
Determine a diff area as pre-stored criteria diff area in the diff area taken at random.
The present invention further provides a kind of device of writing safety check, which includes:
Module is obtained, for obtaining the writing data of user's typing when the safety check for receiving user instructs;
Processing module, for the writing data are similar according to default writing algorithm progress to pre-stored criteria writing data
Degree compares, and obtains the similarity of the writing data Yu the pre-stored criteria writing data;
When the similarity is greater than preset threshold, determine that the user passes through safety check.
Preferably, the processing module is also used to when the similarity is less than or equal to preset threshold, from the writing
Corresponding writing image is extracted in data;
Determine the diff area in the writing image with the pre-stored criteria writing image;
The acquisition module is also used to obtain image district corresponding with determining diff area in the standard writing image
Domain;
Obtain the difference value of determining diff area and described image region;
The processing module is also used to determine that the user passes through peace when the difference value meets default difference condition
Whole school tests;
When the difference value is unsatisfactory for default difference condition, determine that the user does not pass through safety check.
Preferably, the processing module is also used to determine in the writing image and the pre-stored criteria writing image
Diff area, and determining diff area and pre-stored criteria diff area are subjected to image ratio according to the default writing algorithm
It is right;
The acquisition module is also used to when the diff area of the determination is matched with the pre-stored criteria diff area,
Obtain image-region corresponding with the diff area of the determination in the standard writing image.
Preferably, the processing module, is also used to the mapping relations according to difference value and similarity regulated value, determine described in
The corresponding similarity regulated value of difference value, and the preset threshold is updated according to the similarity regulated value.
Preferably, the processing module is also used to acquire multiple identical writing data, from the writing data of acquisition with
Machine determines a writing data as pre-stored criteria writing data;
It determines the corresponding writing image of each writing data, and obtains the difference section between writing image determining two-by-two
Domain determines a diff area as pre-stored criteria diff area at random from the diff area of acquisition.
Compared with the prior art, the present invention is by carrying out phase with pre-stored criteria writing data according to the writing data of user's typing
It is compared like degree, and when the similarity of the writing data and the pre-stored criteria writing data is greater than preset threshold, determines institute
It states user and the probability of hacker attack is effectively reduced, mentions while guaranteeing the simplification of safety check operation by safety check
The high safety of information.
Detailed description of the invention
Fig. 1 is the flow diagram of the method first embodiment of writing safety check of the present invention;
Fig. 2 is the flow diagram of the method second embodiment of writing safety check of the present invention;
Fig. 3 is the flow diagram of the method 3rd embodiment of writing safety check of the present invention;
Fig. 4 is the flow diagram of the method fourth embodiment of writing safety check of the present invention;
Fig. 5 is the functional block diagram of the device preferred embodiment of writing safety check of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the flow diagram of the method first embodiment for writing safety check of the present invention.
It is emphasized that: flow chart shown in Fig. 1 is only a preferred embodiment, and those skilled in the art appoints when knowing
What should not all be detached from the range covered in following technical solution around the embodiment of inventive concept building:
When the safety check for receiving user instructs, the writing data of user's typing are obtained;By the writing number
It is compared according to similarity is carried out according to default writing algorithm with pre-stored criteria writing data, obtains the writing data and prestored with described
The similarity of standard writing data;When the similarity is greater than preset threshold, determine that the user passes through safety check.
It is the specific steps that safety check is done step-by-step in the present embodiment below:
Step S10 obtains the writing data of user's typing when the safety check for receiving user instructs;
In order to guarantee the safety of mobile service and user information etc., pass through terminal access mobile service or user in user
Whens information etc., for example, access some mobile terminal as user, or clears a paper when accessing, need to some in ERP system
Carry out the operation of safety check.For example, when user requests access to mobile terminal, or clear a paper to some in ERP system
When accessing, triggering safety check instruction, and typing writing data.Writing safety check of the present invention is executed in the present embodiment
The main body of method be preferably mobile terminal, be also possible to some in mobile terminal in other embodiments of the present invention using journey
Sequence, the server of the webpage loaded in mobile terminal, the table etc. loaded in mobile terminal.When the safety check for receiving user
When instruction, the writing data of user's typing described in acquisition for mobile terminal.In other embodiments of the present invention, mobile whole in order to save
The expense at end improves the performance of mobile terminal, when the safety check for receiving user instructs, described in the acquisition for mobile terminal
The MAC Address of network locating for user, and judge whether the MAC Address consistent with MAC Address is prestored, the MAC Address with
Prestore MAC Address it is consistent when, then receive the writing data of user's typing;The MAC Address with to prestore MAC Address different
When cause, termination of security checking process, and prompt user to fail and carry out safety check, and prompt user with accessing correct MAC
The network of location.
The writing data and pre-stored criteria writing data are carried out similarity ratio according to default writing algorithm by step S20
It is right, obtain the similarity of the writing data Yu the pre-stored criteria writing data;
The mobile terminal prestores the standard writing data of each user in advance, when the word for getting user's typing
When mark data, from standard writing database, pre-stored criteria writing data corresponding with the user are obtained, by the writing number
It is compared according to similarity is carried out according to default writing algorithm with pre-stored criteria writing data, the default writing algorithm is disclosed
Other applicable writing algorithms such as SURF algorithm.Obtain the similarity of the writing data Yu the standard writing data.For example,
Obtained similarity is 80%.In order to enable safety check is more rationally and accurate, and in other embodiments of the present invention, the shifting
Dynamic terminal acquires multiple identical writing data in advance, and multiple identical data are the identical writing data of same user, for example,
The signature " Zhang San " of party A-subscriber, signature " Li Si " of party B-subscriber etc., that is, signature " Zhang San " or the acquisition for acquiring multiple party A-subscribers' inputs are more
Signature " Li Si " of a party B-subscriber etc..Determine a writing data as standard writing data at random from the writing data of acquisition.
Step S30 determines that the user passes through safety check when the similarity is greater than preset threshold.
For the mobile terminal according to one threshold value of instruction preset in advance of user, the preset threshold is corresponding with similarity
Value, for example, it may be 90%, 50% etc..If obtained similarity is 80%, preset threshold 50%, it is determined that the phase
It is greater than preset threshold like degree, determines that the user passes through safety check.It is less than or equal to the default threshold in the similarity
When value, determine that the user does not pass through safety check, prompts user security verification failure, re-type writing data.It is described to mention
The mode shown can be text, picture, sound etc..In other embodiments of the present invention, in order to improve the accuracy of safety check,
When the similarity is less than or equal to preset threshold, can also be verified further according to other parameters, or to institute
It states similarity to be adjusted, or modes is modified etc. to the writing data and continue to verify.
The embodiment of the present invention is by carrying out similarity ratio according to the writing data and pre-stored criteria writing data of user's typing
It is right, and when the similarity of the writing data and the pre-stored criteria writing data is greater than preset threshold, determine the user
The probability of hacker attack is effectively reduced, improves letter while guaranteeing the simplification of safety check operation by safety check
The safety of breath also improves the privacy of user.
As shown in Fig. 2, the flow diagram of the method second embodiment for writing safety check of the present invention.Based on above-mentioned
One embodiment, after the step S20, this method is further comprised the steps of:
Step S40 extracts corresponding word from the writing data when the similarity is less than or equal to preset threshold
Mark image;
Step S50 determines the diff area in the writing image with the pre-stored criteria writing image, obtains the mark
Image-region corresponding with determining diff area in quasi- writing image;
Step S60 obtains the difference value of determining diff area and described image region;
Step S70 determines that the user passes through safety check when the difference value meets default difference condition;
Step S80 determines that the user does not pass through safety check when the difference value is unsatisfactory for default difference condition.
In the present embodiment, if obtained similarity is 80%, preset threshold 90%, it is determined that the similarity is less than
Preset threshold, the mobile terminal is when the similarity is less than or equal to preset threshold, the extraction pair from the writing data
The writing image answered.The mobile terminal prestores the standard writing image of each user, is determining from the writing data
After extracting corresponding writing image, pre-stored criteria writing corresponding with the user is obtained from the standard writing image library
Image.The writing image is prestored writing image with the standard to be compared, determine in the writing image with it is described pre-
The diff area of standard writing image is deposited, and obtains image district corresponding with determining diff area in the standard writing image
Domain.For example, the writing image is A, the pre-stored criteria writing image is B, and A is compared with B, obtains the difference of A and B
Region C obtains image-region D corresponding with C in B.The diff area and described image region that the acquisition for mobile terminal determines
Difference value, for example, obtain C and D difference value be M.The difference value can be difference percentage (4%, 9% etc.), can also
To be specific value (4,9 etc.).The mobile terminal judges whether the difference value meets default difference condition, the default difference
Different condition can be a numerical value, such as 5%, 10% etc., be also possible to a range, for example, 5%>S<10% or 10%>S<
20% etc..When the difference value meets default difference condition, such as when M is less than 5%, determine that the user passes through safe school
It tests, when the difference value is unsatisfactory for default difference condition, for example, determining that the user is not led to when the difference value is greater than 5%
Safety check is crossed, the application program etc. in the mobile terminal or mobile terminal cannot be accessed.Prompt user does not pass through safe school
It tests, and further prompts the correct writing data of user's typing.Further, in embodiments of the present invention, in order to reduce algorithm
Complexity and algorithm calculate bring overhead, the writing image and standard prestore writing image can be with expression composition
It is not two groups of continuous periodic signals corresponding with its, according to " Fourier transform ", the periodic signal of continuous transformation is turned
Sine curve is changed to indicate, is sampled that (the writing image and the standard pre-stored image are adopted respectively to image
Sample), by each sampled point on the writing image, the difference of sampled point and former and later two sampled points is expressed as curve
" amplitude ", continuously amplitude between points, forms a continuous signal.To treated, signal is primary " Fu again
Vertical leaf transformation ", is converted to SIN function to indicate.The operation of integral is thus converted into algebraic operation.It is equally pre- to standard
It deposits writing image and obtains corresponding SIN function in the manner described above, the two is compared, difference is calculated.By from integral
To the conversion of algebra, achievees the purpose that reduce operation, save the expense of system, improve system performance.
In the present embodiment by being extracted from the writing data when the similarity is less than or equal to preset threshold
Corresponding writing image determines the diff area in the writing image with the pre-stored criteria writing image, obtains the mark
Image-region corresponding with determining diff area in quasi- writing image;Obtain determining diff area and described image region
Difference value determines that the user passes through safety check when the difference value meets default difference condition.Each time in user
It when writing data difference, can be also modified according to aforesaid way, to further increase the accuracy of safety check.
As shown in figure 3, the flow diagram of the method 3rd embodiment for writing safety check of the present invention.Based on above-mentioned
Two embodiments, the step S50 could alternatively be:
Step S90 determines the diff area in the writing image with the pre-stored criteria writing image, and will be determining
Diff area carries out image according to the default writing algorithm with pre-stored criteria diff area and compares;
Step S100 obtains the mark when the diff area of the determination is matched with the pre-stored criteria diff area
Image-region corresponding with the diff area of the determination in quasi- writing image.
The mobile terminal prestores the corresponding standard difference region of each user, in determining the writing image with institute
When stating the diff area of pre-stored criteria writing image, the corresponding pre-stored criteria difference section of user described in the acquisition for mobile terminal
Domain, and determining diff area is subjected to image according to the default writing algorithm with pre-stored criteria diff area and is compared.Institute
When stating determining diff area and being matched with the pre-stored criteria diff area, obtain in the standard writing image with the determination
The corresponding image data in diff area, and in the way of upper above-described embodiment to the user carry out safety check;Institute
When stating determining diff area with pre-stored criteria diff area mismatch, determine that the user does not pass through safety check, and
Prompt user re-types writing data.In order to enable safety check is more rationally and accurate, in other embodiments of the present invention,
The mobile terminal acquires multiple identical writing data in advance, and multiple identical data are the identical writing number of same user
According to for example, the signature " Zhang San " of party A-subscriber, signature " Li Si " of party B-subscriber etc., that is, acquire the signature " Zhang San " of multiple party A-subscriber's inputs
Or the signature " Li Si " etc. of the multiple party B-subscribers of acquisition.Determine a writing data as standard at random from the writing data of acquisition
Writing data.The mobile terminal determines the corresponding writing image of each writing data, and obtains writing image determining two-by-two
Between diff area, from the diff area of acquisition at random determine a diff area as pre-stored criteria diff area.
In the present embodiment by the diff area in determining the writing image with the pre-stored criteria writing image,
And determining diff area is subjected to image according to the default writing algorithm with pre-stored criteria diff area and is compared, described true
When fixed diff area is matched with the pre-stored criteria diff area, continue the safety check of the user;Described true
When fixed diff area and the pre-stored criteria diff area mismatch, determine that the user does not pass through safety check.Save peace
The process that whole school tests prompts the correct writing data of user's typing, has for finding the abnormal writing data of user's typing in time
Effect improves the efficiency of safety check.
As shown in figure 4, the flow diagram of the method fourth embodiment for writing safety check of the present invention.Based on above-mentioned
Two and 3rd embodiment, after the step S30, this method is further comprised the steps of:
Step S110 determines that the difference value is corresponding similar according to the mapping relations of difference value and similarity regulated value
Regulated value is spent, and the preset threshold is updated according to the similarity regulated value.
The mobile terminal determines that the user does not pass through safe school when the difference value is unsatisfactory for default difference condition
After testing, according to the mapping relations of difference value and similarity regulated value, the corresponding similarity regulated value of the difference value is determined, and
The preset threshold is updated according to the similarity regulated value, when carrying out safety check for user's next time, improves safety
The accuracy and efficiency of verification.The mobile terminal is when the difference value is multiple, according to difference value and similarity regulated value
Mapping relations, determine the corresponding similarity regulated value of each difference value, and determining each similarity regulated value is updated
To in the preset threshold.It is understood that be also possible to by each similarity regulated value according to sequence from small to large into
Row sequence is therefrom selected and meets the similarity regulated value of threshold value and be updated in the preset threshold, and the threshold value can be specifically
Value be also possible to a range, for example, 1% < P < 1.5% etc. for example, 1%.
In the embodiment of the present invention by being closed according to the mapping of difference value and similarity regulated value after will be by safety check
System determines the corresponding similarity regulated value of difference value obtained, and according to determining similarity regulated value to the default threshold
Value is updated, and when requesting safety check next time for user, determines whether the user can pass through by the preset threshold
Safety check further increases the accuracy and efficiency of safety check.
As shown in figure 5, the functional block diagram of the device preferred embodiment for writing safety check of the present invention.The device
It include: to obtain module 10 and processing module 20.
The acquisition module 10, for obtaining the word of user's typing when the safety check for receiving user instructs
Mark data;
In order to guarantee the safety of mobile service and user information etc., pass through terminal access mobile service or user in user
Whens information etc., for example, access some mobile terminal as user, or clears a paper when accessing, need to some in ERP system
Carry out the operation of safety check.For example, when user requests access to mobile terminal, or clear a paper to some in ERP system
When accessing, triggering safety check instruction, and typing writing data.Writing safety check of the present invention is executed in the present embodiment
The main body of method be preferably mobile terminal, be also possible to some in mobile terminal in other embodiments of the present invention using journey
Sequence, the server of the webpage loaded in mobile terminal, the table etc. loaded in mobile terminal.When the safety check for receiving user
When instruction, the writing data of user's typing described in acquisition for mobile terminal.In other embodiments of the present invention, mobile whole in order to save
The expense at end improves the performance of mobile terminal, when the safety check for receiving user instructs, described in the acquisition for mobile terminal
The MAC Address of network locating for user, and judge whether the MAC Address consistent with MAC Address is prestored, the MAC Address with
Prestore MAC Address it is consistent when, then receive the writing data of user's typing;The MAC Address with to prestore MAC Address different
When cause, termination of security checking process, and prompt user to fail and carry out safety check, and prompt user with accessing correct MAC
The network of location.
The processing module 20, for by the writing data and pre-stored criteria writing data according to default writing algorithm into
Row similarity compares, and obtains the similarity of the writing data Yu the pre-stored criteria writing data;
When the similarity is greater than preset threshold, determine that the user passes through safety check.
The mobile terminal prestores the standard writing data of each user in advance, when the word for getting user's typing
When mark data, from standard writing database, pre-stored criteria writing data corresponding with the user are obtained, by the writing number
It is compared according to similarity is carried out according to default writing algorithm with pre-stored criteria writing data, the default writing algorithm is disclosed
Other applicable writing algorithms such as SURF algorithm.Obtain the similarity of the writing data Yu the standard writing data.For example,
Obtained similarity is 80%.In order to enable safety check is more rationally and accurate, and in other embodiments of the present invention, the shifting
Dynamic terminal acquires multiple identical writing data in advance, and multiple identical data are the identical writing data of same user, for example,
The signature " Zhang San " of party A-subscriber, signature " Li Si " of party B-subscriber etc., that is, signature " Zhang San " or the acquisition for acquiring multiple party A-subscribers' inputs are more
Signature " Li Si " of a party B-subscriber etc..Determine a writing data as standard writing data at random from the writing data of acquisition.
For the mobile terminal according to one threshold value of instruction preset in advance of user, the preset threshold is corresponding with similarity
Value, for example, it may be 90%, 50% etc..If obtained similarity is 80%, preset threshold 50%, it is determined that the phase
It is greater than preset threshold like degree, determines that the user passes through safety check.It is less than or equal to the default threshold in the similarity
When value, determine that the user does not pass through safety check, prompts user security verification failure, re-type writing data.It is described to mention
The mode shown can be text, picture, sound etc..In other embodiments of the present invention, in order to improve the accuracy of safety check,
When the similarity is less than or equal to preset threshold, can also be verified further according to other parameters, or to institute
It states similarity to be adjusted, or modes is modified etc. to the writing data and continue to verify.
The embodiment of the present invention is by carrying out similarity ratio according to the writing data and pre-stored criteria writing data of user's typing
It is right, and when the similarity of the writing data and the pre-stored criteria writing data is greater than preset threshold, determine the user
The probability of hacker attack is effectively reduced, improves letter while guaranteeing the simplification of safety check operation by safety check
The safety of breath also improves the privacy of user.
Further, the processing module 20 is also used to when the similarity is less than or equal to preset threshold, from described
Corresponding writing image is extracted in writing data;
Determine the diff area in the writing image with the pre-stored criteria writing image;
The acquisition module 10 is also used to obtain image corresponding with determining diff area in the standard writing image
Region;
Obtain the difference value of determining diff area and described image region;
The processing module 20 is also used to determine that the user passes through when the difference value meets default difference condition
Safety check;
When the difference value is unsatisfactory for default difference condition, determine that the user does not pass through safety check.
In the present embodiment, if obtained similarity is 80%, preset threshold 90%, it is determined that the similarity is less than
Preset threshold, the mobile terminal is when the similarity is less than or equal to preset threshold, the extraction pair from the writing data
The writing image answered.The mobile terminal prestores the standard writing image of each user, is determining from the writing data
After extracting corresponding writing image, pre-stored criteria writing corresponding with the user is obtained from the standard writing image library
Image.The writing image is prestored writing image with the standard to be compared, determine in the writing image with it is described pre-
The diff area of standard writing image is deposited, and obtains image district corresponding with determining diff area in the standard writing image
Domain.For example, the writing image is A, the pre-stored criteria writing image is B, and A is compared with B, obtains the difference of A and B
Region C obtains image-region D corresponding with C in B.The diff area and described image region that the acquisition for mobile terminal determines
Difference value, for example, obtain C and D difference value be M.The difference value can be difference percentage (4%, 9% etc.), can also
To be specific value (4,9 etc.).The mobile terminal judges whether the difference value meets default difference condition, the default difference
Different condition can be a numerical value, such as 5%, 10% etc., be also possible to a range, for example, 5%>S<10% or 10%>S<
20% etc..When the difference value meets default difference condition, such as when M is less than 5%, determine that the user passes through safe school
It tests, when the difference value is unsatisfactory for default difference condition, for example, determining that the user is not led to when the difference value is greater than 5%
Safety check is crossed, the application program etc. in the mobile terminal or mobile terminal cannot be accessed.Prompt user does not pass through safe school
It tests, and further prompts the correct writing data of user's typing.Further, in embodiments of the present invention, in order to reduce algorithm
Complexity and algorithm calculate bring overhead, the writing image and standard prestore writing image can be with expression composition
It is not two groups of continuous periodic signals corresponding with its, according to " Fourier transform ", the periodic signal of continuous transformation is turned
Sine curve is changed to indicate, is sampled that (the writing image and the standard pre-stored image are adopted respectively to image
Sample), by each sampled point on the writing image, the difference of sampled point and former and later two sampled points is expressed as curve
" amplitude ", continuously amplitude between points, forms a continuous signal.To treated, signal is primary " Fu again
Vertical leaf transformation ", is converted to SIN function to indicate.The operation of integral is thus converted into algebraic operation.It is equally pre- to standard
It deposits writing image and obtains corresponding SIN function in the manner described above, the two is compared, difference is calculated.By from integral
To the conversion of algebra, achievees the purpose that reduce operation, save the expense of system, improve system performance.
In the present embodiment by being extracted from the writing data when the similarity is less than or equal to preset threshold
Corresponding writing image determines the diff area in the writing image with the pre-stored criteria writing image, obtains the mark
Image-region corresponding with determining diff area in quasi- writing image;Obtain determining diff area and described image region
Difference value determines that the user passes through safety check when the difference value meets default difference condition.Each time in user
It when writing data difference, can be also modified according to aforesaid way, to further increase the accuracy of safety check.
Further, the processing module 20 is also used to determine in the writing image and the pre-stored criteria writing figure
The diff area of picture, and determining diff area and pre-stored criteria diff area are subjected to image according to the default writing algorithm
It compares;
When the diff area of the determination is matched with the pre-stored criteria diff area, the standard writing image is obtained
In image-region corresponding with the diff area of the determination.
The mobile terminal prestores the corresponding standard difference region of each user, in determining the writing image with institute
When stating the diff area of pre-stored criteria writing image, the corresponding pre-stored criteria difference section of user described in the acquisition for mobile terminal
Domain, and determining diff area is subjected to image according to the default writing algorithm with pre-stored criteria diff area and is compared.Institute
When stating determining diff area and being matched with the pre-stored criteria diff area, obtain in the standard writing image with the determination
The corresponding image data in diff area, and in the way of upper above-described embodiment to the user carry out safety check;Institute
When stating determining diff area with pre-stored criteria diff area mismatch, determine that the user does not pass through safety check, and
Prompt user re-types writing data.In order to enable safety check is more rationally and accurate, in other embodiments of the present invention,
The mobile terminal acquires multiple identical writing data in advance, and multiple identical data are the identical writing number of same user
According to for example, the signature " Zhang San " of party A-subscriber, signature " Li Si " of party B-subscriber etc., that is, acquire the signature " Zhang San " of multiple party A-subscriber's inputs
Or the signature " Li Si " etc. of the multiple party B-subscribers of acquisition.Determine a writing data as standard at random from the writing data of acquisition
Writing data.The mobile terminal determines the corresponding writing image of each writing data, and obtains writing image determining two-by-two
Between diff area, from the diff area of acquisition at random determine a diff area as pre-stored criteria diff area.
In the present embodiment by the diff area in determining the writing image with the pre-stored criteria writing image,
And determining diff area is subjected to image according to the default writing algorithm with pre-stored criteria diff area and is compared, described true
When fixed diff area is matched with the pre-stored criteria diff area, continue the safety check of the user;Described true
When fixed diff area and the pre-stored criteria diff area mismatch, determine that the user does not pass through safety check.Save peace
The process that whole school tests prompts the correct writing data of user's typing, has for finding the abnormal writing data of user's typing in time
Effect improves the efficiency of safety check.
The processing module 20, is also used to the mapping relations according to difference value and similarity regulated value, determines the difference
It is worth corresponding similarity regulated value, and the preset threshold is updated according to the similarity regulated value.
The mobile terminal determines that the user does not pass through safe school when the difference value is unsatisfactory for default difference condition
After testing, according to the mapping relations of difference value and similarity regulated value, the corresponding similarity regulated value of the difference value is determined, and
The preset threshold is updated according to the similarity regulated value, when carrying out safety check for user's next time, improves safety
The accuracy and efficiency of verification.The mobile terminal is when the difference value is multiple, according to difference value and similarity regulated value
Mapping relations, determine the corresponding similarity regulated value of each difference value, and determining each similarity regulated value is updated
To in the preset threshold.It is understood that be also possible to by each similarity regulated value according to sequence from small to large into
Row sequence is therefrom selected and meets the similarity regulated value of threshold value and be updated in the preset threshold, and the threshold value can be specifically
Value be also possible to a range, for example, 1% < P < 1.5% etc. for example, 1%.
In the embodiment of the present invention by being closed according to the mapping of difference value and similarity regulated value after will be by safety check
System determines the corresponding similarity regulated value of difference value obtained, and according to determining similarity regulated value to the default threshold
Value is updated, and when requesting safety check next time for user, determines whether the user can pass through by the preset threshold
Safety check further increases the accuracy and efficiency of safety check.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.Pass through above embodiment party
The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software
The mode of hardware platform is realized, naturally it is also possible to which by hardware, but in many cases, the former is more preferably embodiment.It is based on
Such understanding, substantially the part that contributes to existing technology can be with software product in other words for technical solution of the present invention
Form embody, which is stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including
Some instructions are used so that a terminal device (can be mobile phone, computer, server or the network equipment etc.) executes this hair
Method described in bright each embodiment.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations
Technical field, be included within the scope of the present invention.
Claims (8)
1. a kind of method of writing safety check, which is characterized in that the method comprising the steps of:
When the safety check for receiving user instructs, the writing data of user's typing are obtained;
The writing data are carried out similarity according to default writing algorithm with pre-stored criteria writing data to compare, obtain the word
The similarity of mark data and the pre-stored criteria writing data;
When the similarity is greater than preset threshold, determine that the user passes through safety check;
When the similarity is less than or equal to preset threshold, obtains the corresponding writing image of the writing data and prestored with described
The difference value of the corresponding pre-stored criteria writing image of standard writing data;
When the difference value meets default difference condition, determine that the user passes through safety check;
When the difference value is unsatisfactory for default difference condition, determine that the user does not pass through safety check;
Wherein, after determining the user by safety check, according to the mapping relations of difference value and similarity regulated value, really
Determine the corresponding similarity regulated value of the difference value, and the preset threshold is updated according to the similarity regulated value.
2. the method for writing safety check as described in claim 1, which is characterized in that the acquisition writing data are corresponding
Writing image pre-stored criteria writing image corresponding with the pre-stored criteria writing data difference value the step of include:
When the similarity is less than or equal to preset threshold, corresponding writing image is extracted from the writing data;
It determines the diff area in the writing image with the pre-stored criteria writing image, obtains in the standard writing image
Image-region corresponding with determining diff area;
Obtain the difference value of determining diff area and described image region.
3. the method for writing safety check as claimed in claim 2, which is characterized in that in the determination writing image with
The diff area of the pre-stored criteria writing image obtains figure corresponding with determining diff area in the standard writing image
As the step of region replaces are as follows:
Determine the diff area in the writing image with the pre-stored criteria writing image, and by determining diff area and in advance
It deposits standard difference region and carries out image comparison according to the default writing algorithm;
When the diff area of the determination is matched with the pre-stored criteria diff area, obtain in the standard writing image with
The corresponding image-region in the diff area of the determination.
4. the method for writing safety check as described in any one of claims 1 to 3, which is characterized in that this method further include:
Multiple identical writing data are acquired, determine a writing data as pre-stored criteria at random from the writing data of acquisition
Writing data;
It determines the corresponding writing image of each writing data, and obtains the diff area between writing image two-by-two, from acquisition
Determine a diff area as pre-stored criteria diff area in diff area at random.
5. a kind of device of writing safety check, which is characterized in that the device includes:
Module is obtained, for obtaining the writing data of user's typing when the safety check for receiving user instructs;
Processing module, for the writing data and pre-stored criteria writing data to be carried out similarity ratio according to default writing algorithm
It is right, obtain the similarity of the writing data Yu the pre-stored criteria writing data;
When the similarity is greater than preset threshold, determine that the user passes through safety check;
Module is obtained, for obtaining the corresponding writing of the writing data when the similarity is less than or equal to preset threshold
The difference value of image pre-stored criteria writing image corresponding with the pre-stored criteria writing data;
The processing module is also used to determine that the user passes through safe school when the difference value meets default difference condition
It tests, when the difference value is unsatisfactory for default difference condition, determines that the user does not pass through safety check;
Wherein, the processing module is also used to the mapping relations according to difference value and similarity regulated value, determines the difference value
Corresponding similarity regulated value, and the preset threshold is updated according to the similarity regulated value.
6. the device of writing safety check as claimed in claim 5, which is characterized in that
The processing module is also used to extract from the writing data when the similarity is less than or equal to preset threshold
Corresponding writing image;
Determine the diff area in the writing image with the pre-stored criteria writing image;
The acquisition module is also used to obtain image-region corresponding with determining diff area in the standard writing image;
Obtain the difference value of determining diff area and described image region.
7. the device of writing safety check as claimed in claim 6, which is characterized in that
The processing module is also used to determine the diff area in the writing image with the pre-stored criteria writing image, and
Determining diff area is carried out image according to the default writing algorithm with pre-stored criteria diff area to compare;
The acquisition module is also used to when the diff area of the determination is matched with the pre-stored criteria diff area, is obtained
Image-region corresponding with the diff area of the determination in the standard writing image.
8. such as the device of the described in any item writing safety checks of claim 5 to 7, which is characterized in that
The processing module is also used to acquire multiple identical writing data, determines one at random from the writing data of acquisition
Writing data are as pre-stored criteria writing data;
It determines the corresponding writing image of each writing data, and obtains the diff area between writing image determining two-by-two, from
Determine a diff area as pre-stored criteria diff area in the diff area of acquisition at random.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410234419.3A CN104021324B (en) | 2014-05-29 | 2014-05-29 | The method and device of writing safety check |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410234419.3A CN104021324B (en) | 2014-05-29 | 2014-05-29 | The method and device of writing safety check |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104021324A CN104021324A (en) | 2014-09-03 |
CN104021324B true CN104021324B (en) | 2019-01-01 |
Family
ID=51438073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410234419.3A Active CN104021324B (en) | 2014-05-29 | 2014-05-29 | The method and device of writing safety check |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104021324B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106504141A (en) * | 2015-09-08 | 2017-03-15 | 迈吉克股份有限公司 | A kind of writing marking system and its methods of marking |
CN107833024B (en) * | 2017-11-24 | 2018-11-23 | 江苏中威科技软件系统有限公司 | Retroactive method is signed in the visualization of process |
CN111209549A (en) * | 2020-01-02 | 2020-05-29 | 佛山市禾才科技服务有限公司 | Security verification method and device |
CN112102908A (en) * | 2020-09-22 | 2020-12-18 | 合肥易康达医疗卫生信息科技有限公司 | Credible cloud signature method for electronic medical record |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096809A (en) * | 2011-01-25 | 2011-06-15 | 重庆大学 | Handwriting identification method based on local outline structure coding |
CN103279770A (en) * | 2013-06-06 | 2013-09-04 | 哈尔滨工业大学 | Handwriting recognition method based on fragment and contour feature of stroke |
CN103679456A (en) * | 2012-09-18 | 2014-03-26 | 中国银联股份有限公司 | System and method for trading based on signature information |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030233557A1 (en) * | 2002-06-13 | 2003-12-18 | Zimmerman Thomas Guthrie | Electronic signature verification method and apparatus |
-
2014
- 2014-05-29 CN CN201410234419.3A patent/CN104021324B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096809A (en) * | 2011-01-25 | 2011-06-15 | 重庆大学 | Handwriting identification method based on local outline structure coding |
CN103679456A (en) * | 2012-09-18 | 2014-03-26 | 中国银联股份有限公司 | System and method for trading based on signature information |
CN103279770A (en) * | 2013-06-06 | 2013-09-04 | 哈尔滨工业大学 | Handwriting recognition method based on fragment and contour feature of stroke |
Also Published As
Publication number | Publication date |
---|---|
CN104021324A (en) | 2014-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104022879B (en) | The method and device of voice safety check | |
US11645404B2 (en) | System, method, and computer program product for preventing access to data with respect to a data access attempt associated with a remote data sharing session | |
TWI640890B (en) | Method and device for detecting weak password | |
US10936727B2 (en) | Detection of second order vulnerabilities in web services | |
CN112313653A (en) | Hiding sensitive information in text | |
CN104021324B (en) | The method and device of writing safety check | |
US9692771B2 (en) | System and method for estimating typicality of names and textual data | |
US11120122B2 (en) | Augmenting password generation and validation | |
CN106789855A (en) | The method and device of user login validation | |
CN108769070A (en) | One kind is gone beyond one's commission leak detection method and device | |
CN107403108A (en) | A kind of method and system of data processing | |
CN107577944A (en) | Website malicious code detecting method and device based on code syntax analyzer | |
US20160196422A1 (en) | Method and apparatus for controlling invoking of hardware instruction | |
CN110048932A (en) | Validation checking method, apparatus, equipment and the storage medium of mail Monitoring function | |
CN110110528A (en) | Safety risk estimating method, device and the equipment of information system | |
CN110581835A (en) | Vulnerability detection method and device and terminal equipment | |
CN108809896A (en) | A kind of information calibration method, device and electronic equipment | |
CN109688096A (en) | Recognition methods, device, equipment and the computer readable storage medium of IP address | |
US20120198555A1 (en) | Testing web services that are accessible via service oriented architecture (soa) interceptors | |
US11321453B2 (en) | Method and system for detecting and classifying malware based on families | |
CN105354506B (en) | The method and apparatus of hidden file | |
JP6258189B2 (en) | Specific apparatus, specific method, and specific program | |
CN106485139A (en) | A kind of safe verification method of application program | |
CN107995167B (en) | Equipment identification method and server | |
WO2020228564A1 (en) | Application service method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |