CN110059474A - A kind of method and device of PIN code modification - Google Patents
A kind of method and device of PIN code modification Download PDFInfo
- Publication number
- CN110059474A CN110059474A CN201910292422.3A CN201910292422A CN110059474A CN 110059474 A CN110059474 A CN 110059474A CN 201910292422 A CN201910292422 A CN 201910292422A CN 110059474 A CN110059474 A CN 110059474A
- Authority
- CN
- China
- Prior art keywords
- pin code
- user
- module
- client
- judges
- 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.)
- Granted
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/45—Structures or tools for the administration of authentication
- G06F21/46—Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present invention discloses a kind of method and device of PIN code modification, it include: the user's operation to be received such as client, when receiving user's operation, judge the type of the user's operation, if it is the first operation, waits user to modify PIN code, judge whether PIN code is successfully modified, if successfully modified, current time is recorded;If it is the second operation, judge that current intelligent key with the presence or absence of PIN code modification time, if so, judging whether PIN code modification time and current time difference are greater than preset value, is ready to use in modification PIN code if so, waiting;If not, prompt user inputs PIN code, whether correct PIN code is judged, if correctly, operation is completed;Through the invention, PIN code periodic modification is realized, and when there is a situation where locked, technical staff can be facilitated to search locked reason.
Description
Technical field
The present invention relates to information security field, in particular to a kind of method and device of PIN code modification.
Background technique
PIN code full name is Personal Identification Number, as personal recognition code.Present technology
In, the thing of user's input error PIN code happens occasionally, if the number of input error is greater than threshold value, for the sake of security, meeting
There is locked situation, can make troubles to user, also inconvenient technical staff searches locked reason.In addition, user in order to
The safety of account has the demand of periodic modification PIN code.
Summary of the invention
The present invention provides a kind of methods of PIN code modification, comprising:
Step s1: the user's operation to be received such as client judges the type of user's operation when receiving user's operation,
If it is the first operation, step s2 is executed;If it is the second operation, step s3 is executed;
Step s2: client waits user to modify PIN code, judges whether PIN code is successfully modified, if so, client is remembered
Present system time is recorded, is terminated;Otherwise, it reports an error and exits;
Step s3: client judges current intelligent key with the presence or absence of PIN code modification time, if so, executing step s4;
Otherwise, step s2 is executed;
Step s4: client judges whether PIN code modification time and present system time difference are more than preset value, if
It is to execute step s2;Otherwise, step s5 is executed;
Step s5: Client-Prompt user inputs PIN code, receives the PIN code of user's input, PIN code is sent to intelligence
Key devices, whether the response prompt PIN code returned according to intelligent cipher key equipment is correct, if so, operation is completed;Otherwise, it holds
Row step s6;
Step s6: response that client is returned according to intelligent cipher key equipment prompt input error PIN code number whether be more than
Threshold value exits if so, reporting an error;Otherwise, step s7 is executed;
Step s7: client inputs PIN code by mistake number and present system time is recorded in intelligent cipher key equipment, returns to step
Rapid s5.
Specifically, the user's operation to be received such as client judges user's operation type, such as when receiving user's operation
Fruit is modification PIN code operation, executes step s2;If it is PIN code operation is tested, step s3 is executed.
Optionally, step s1 further include: when judging user's operation type is to insert intelligent key operation, execute following step
It is rapid:
Step s1-1: client obtains the sequence number of current intelligent key, judges whether there is PIN code according to sequence number and repairs
Change the time, if so, executing step s1-2;Otherwise, step s2 is executed;
Step s1-2: client reads current intelligent key PIN code modification time, judges PIN code modification time and current
Whether system time difference is more than preset value, if so, executing step s2;Otherwise, prompt intelligent key insertion, normal use intelligence
It can key.
Optionally, step s2 is specifically included:
Step s2-1: client waits user to modify PIN code, prompts user to input old PIN code, whether judges old PIN code
Correctly, if so, executing step s2-2;Otherwise, prompt user inputs PIN code mistake, executes step s2-1;
Step s2-2: Client-Prompt user inputs new PIN code, judges whether PIN code is successfully modified, if so, client
End record present system time, sends modification PIN code success response and present system time to server, terminates;Otherwise, it reports
Mistake exits.
Optionally, in step s2-1, when the judgment is no, user is prompted to input after PIN code mistake further include: client
Judge whether user's input error PIN code number is more than threshold value, is exited if so, reporting an error;Otherwise, record PIN code inputs number by mistake
And present system time, it sends PIN code and inputs number and present system time by mistake to server, execute step s2-1.
Optionally, when being judged as YES in step s2, client is recorded after present system time, further includes:
Present system time is sent to server by client.
Optionally, step s3 is specifically included:
Client obtains current intelligent key sequence number, judges whether there is PIN code modification time according to sequence number, if
It is to execute step s4;Otherwise, step s2 is executed.
Optionally, in step s7, client record PIN code is inputed by mistake after number and present system time, further includes:
It inputs PIN code by mistake number and present system time is sent to the server.
Optionally, when being judged as YES in step s5, further includes:
Client removes user's input error password number, and sends to server end and remove user's input error password
Number response.
According to the present invention, a kind of device of PIN code modification is provided characterized by comprising
Receiving module, for receiving user's operation;
Judgment module, for judging the type of the received user's operation of receiving module;
Judgment module is also used to, and when the type for judging user's operation is the first operation, judges whether PIN code is modified as
Function;
Logging modle, for recording present system time when judgment module judges that PIN is successfully modified;
Report an error module, for reporting an error when judgment module judges that PIN code does not have successfully modified;
Optionally, judgment module is also used to, when the type for judging user's operation that receiving module receives is the second behaviour
When making, judge current intelligent key with the presence or absence of PIN code modification time;
Optionally, judgment module is also used to, when judging that current intelligent key there are when PIN code modification time, judges PIN
Whether code modification time and present system time difference are more than preset value;
Cue module, for judging that PIN code modification time and present system time difference are not above when judgment module
When preset value, user is prompted to input PIN code;
Optionally, receiving module is also used to, and after cue module prompt user inputs PIN code, receives user's input
PIN code;
Sending module, the PIN code for receiving receiving module are sent to intelligent cipher key equipment;
Optionally, cue module is also used to, when sending module by the PIN code received be sent to intelligent cipher key equipment it
Afterwards, whether the response prompt PIN code returned according to intelligent cipher key equipment is correct;
Optionally, cue module is also used to, after cue module prompt PIN code is incorrect, according to intelligent cipher key equipment
Whether the response prompt input error PIN code number of return is more than threshold value;
Optionally, the module that reports an error is also used to, and when cue module prompt input error PIN code number is more than threshold value, is reported an error;
Logging modle is used for, and when cue module prompt input error PIN code number is less than threshold value, PIN code is inputed by mistake
Number and present system time are recorded in intelligent cipher key equipment, trigger cue module.
Optionally, a kind of device of PIN code modification, further includes:
Module is obtained, is used for, when judgment module judges that user's operation is to insert intelligent key operation, obtains current intelligence
The sequence number of key;
Judgment module is also used to, and when acquisition module gets the sequence number of intelligent key, is judged whether according to sequence number
There are PIN code modification times;
Read module is used for, when judgment module is judged to read currently there are when PIN code modification time according to sequence number
Intelligent key PIN code modification time triggers judgment module;
Optionally, cue module is also used to, when judgment module judges PIN code modification time and present system time difference
When being less than preset value, intelligent key insertion is prompted.
Optionally, cue module prompts user defeated when judgment module judges that user's operation operates for modification PIN code
Enter old PIN code, triggers judgment module;
Optionally, judgment module is also used to whether judge old PIN code when cue module prompts user to input old PIN code
Correctly;
Optionally, when cue module is also used to judgment module and judges that old PIN code is correct, user is prompted to input new PIN code;
It is also used to when judgment module judges that old PIN code is incorrect, user is prompted to input PIN code mistake;
Optionally, judgment module is also used to whether judge PIN code after cue module prompts user to input new PIN code
It is successfully modified;
Optionally, logging modle is also used to when judgment module judges that PIN code is successfully modified, when recording current system
Between, the successfully modified response of modification PIN code and present system time are sent to server;
Optionally, the module that reports an error is also used to report an error when judgment module judges that PIN code is unmodified successful.
Optionally, judgment module is also used to, and after cue module prompt user inputs PIN code mistake, judges that user is defeated
Enter whether wrong PIN code number is more than threshold value;
Optionally, the module that reports an error is also used to judge that user's input error PIN code time is defeated more than threshold value, report when judgment module
It is wrong;
Optionally, logging modle is also used to judge that user's input error PIN code time is defeated when judgment module to be less than threshold value
When, record PIN code inputs number and present system time by mistake, sends PIN code and inputs number and present system time by mistake to server.
Optionally, module is obtained to be specifically used for obtaining current intelligent key sequence number;
Optionally, judgment module is also used to judge whether to deposit according to the current intelligent key sequence number that acquisition module is got
In PIN code modification time.
Optionally, sending module is also used to after logging modle records PIN code and inputs secondary defeated and present system time by mistake, will
PIN code inputs time defeated and present system time by mistake and is sent to the server.
Optionally, described device further include:
Module is removed, for removing user's input error password number;
Sending module, which is also used to send to server, removes the response of user's input error password number.
Through the invention, PIN code periodic modification is realized, and when there is a situation where locked, technical staff can be facilitated
Search locked reason.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method for PIN code modification that the embodiment of the present invention 1 provides;
Fig. 2 is a kind of flow chart of the method for PIN code modification that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of flow chart of the method for PIN code modification that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of flow chart of the method for PIN code modification that the embodiment of the present invention 4 provides;
Fig. 5 is a kind of flow chart of the method for PIN code modification that the embodiment of the present invention 5 provides;
Fig. 6 is a kind of block diagram for device for PIN code amending method that the embodiment of the present invention 6 provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment 1
The embodiment of the present invention 1 provides a kind of method of PIN code modification, as shown in Figure 1, comprising:
Step s1: the user's operation to be received such as client judges the type of user's operation when receiving user's operation,
If it is the first operation, step s2 is executed;If it is the second operation, step s3 is executed;
Optionally, step s1 is specifically included:
The user's operation to be received such as client judges user's operation type, if it is modification when receiving user's operation
PIN code operation, executes step s2;If it is PIN code operation is tested, step s3 is executed;
Optionally, step s1 further include: when judging user's operation type is to insert intelligent key operation, execute following step
It is rapid:
Step s1-1: client obtains the sequence number of current intelligent key, judges whether there is PIN code according to sequence number and repairs
Change the time, if so, executing step s1-2;Otherwise, step s2 is executed;
Step s1-2: client reads current intelligent key PIN code modification time, judges PIN code modification time and current
Whether system time difference is more than preset value, if so, executing step s2;Otherwise, prompt intelligent key insertion, normal use intelligence
It can key.
Step s2: client waits user to modify PIN code, judges whether PIN code is successfully modified, if so, client is remembered
Present system time is recorded, is terminated;Otherwise, it reports an error and exits.
Optionally, step s2 is specifically included:
Step s2-1: client waits user to modify PIN code, prompts user to input old PIN code, whether judges old PIN code
Correctly, if so, executing step s2-2;Otherwise, prompt user inputs PIN code mistake, executes step s2-1;
Step s2-2: Client-Prompt user inputs new PIN code, judges whether PIN code is successfully modified, if so, client
End record present system time, sends modification PIN code success response and present system time to server, terminates;Otherwise, it reports
Mistake exits.
Optionally, in step s2-2 when the judgment is no, prompt user inputs after PIN code mistake further include: client
The information alert user returned according to intelligent cipher key equipment inputs mistake and enters whether PIN code number is more than threshold value, moves back if so, reporting an error
Out;Otherwise, input PIN code by mistake number and present system time be recorded in intelligent cipher key equipment, send PIN code input by mistake number and
Present system time executes step s2-1 to server.
Step s3: client judges current intelligent key with the presence or absence of PIN code modification time, if so, executing step s4;
Otherwise, step s2 is executed;
Optionally, step s3 is specifically included:
The client obtains the current intelligent key sequence number, judges whether there is PIN code according to the sequence number
Modification time, if so, executing step s4;Otherwise, step s2 is executed.
Step s4: client judges whether PIN code modification time and present system time difference are more than preset value, if
It is to execute step s2;Otherwise, step s5 is executed;
Step s5: Client-Prompt user inputs PIN code, and the PIN code that user inputs is sent to intelligent cipher key equipment, root
It is whether correct according to intelligent cipher key equipment returning response prompt PIN code, if so, signature is completed;Otherwise, step s6 is executed;
Step s6: client prompts whether input error PIN code number is more than threshold according to intelligent cipher key equipment returning response
Value, is exited if so, reporting an error;Otherwise, step s7 is executed;
Step s7: the client inputs PIN code by mistake number and present system time is recorded in intelligent cipher key equipment, returns
Return step s5;
Optionally, in step s7, client inputs PIN code by mistake number and present system time is recorded in intelligent cipher key equipment
Later, further includes:
It inputs PIN code by mistake number and present system time is sent to server.
Embodiment 2
The embodiment of the present invention 2 provides a kind of method of PIN code modification, as shown in Figure 2, comprising:
Step s201: the user's operation to be received such as client judges user's operation type when receiving user's operation,
If it is the first operation, step s202 is executed;If it is the second operation, step s205 is executed;It is operated if it is third, executes step
Rapid s210;
Optionally, step s201 specifically: the user's operation to be received such as client, when receiving user's operation, judgement
User's operation type executes step s202 if it is modification PIN code operation;If it is verifying PIN code operation, step is executed
s205;If it is intelligent key insertion operation, step s210 is executed.
Step s202: Client-Prompt user modifies PIN code, and user is prompted to input old PIN code;
Step s203: client receives the old PIN code of user's input, judges whether the old PIN code of user's input is correct, such as
Fruit is to execute step s204;Otherwise, step s209 is executed;
Step s204: Client-Prompt user inputs new PIN code, receives the new PIN code of user's input, judges that PIN code is repaired
Change and whether succeed, if so, client records present system time, sends modification PIN code success response to server and work as
Preceding system time terminates;Otherwise, it reports an error and exits;
Step s205: client obtains the sequence number of current intelligent key, judges whether to deposit according to the sequence number got
In PIN code modification time, if so, executing step s206;Otherwise, step s202 is executed;
Step s206: client reads the time of last change PIN code, judges time of last change PIN code and current
Whether system time difference is more than preset value, if so, executing step s202;Otherwise, step s207 is executed;
Step s207: client shows PIN code frame, and user is prompted to input PIN code;
Step s208: client receives the PIN code of user's input, judges whether the PIN code of user's input is correct, if
It is that signature is completed;Otherwise, step s209 is executed;
Optionally, when the PIN code for judging user's input is correct, further includes: signature is completed response and is sent to service
Device, notice server removes wrong PIN code input number, and empties the wrong PIN code input number of client record.
Step s209: whether client misjudgment PIN code input number is more than threshold value, is exited if so, reporting an error;Otherwise
Execute step s210;
Step s210: client record PIN code inputs number and present system time by mistake, and inputs PIN code by mistake number and work as
The preceding time is sent to server, return step s206;
Step s211: client obtains current intelligent key sequence number, is judged whether there is according to the sequence number got
PIN code modification time, if so, executing step s212;Otherwise, prompt user modifies PIN code;
Step s212: client reads the time of last change PIN code, judges time of last change PIN code and current
Whether system time difference is more than preset value, if so, prompt user modifies PIN code;Otherwise, prompt intelligent key insertion, just
It is often used intelligent key.
Embodiment 3
The embodiment of the present invention 3 provides a kind of method of PIN code modification, as shown in Figure 3, comprising:
Step s301: client receives the signature request that server is sent, and obtains the sequence number of current intelligent cipher key equipment,
And intelligent cipher key equipment sequence number is sent to server;
Step s302: client receives the data that server returns, and judges the data type of data received, if it is
First encryption data executes step s307;If it is there is no PIN code modification times to respond, step s303 is executed;
Step s303: Client-Prompt user modifies PIN code, and user is waited to input PIN code;
Step s304: client receives the new PIN code of user's input, judges the type of current intelligent cipher key equipment, such as
Fruit is key type intelligent cipher key equipment, prompts user key-press confirmation, executes step s305;It is set if it is other types intelligent key
It is standby, execute step s305;
Step s305: client judges whether PIN code is successfully modified, if so, it is successfully modified to send PIN code to server
Response executes step s306;Otherwise, it reports an error and exits;
Step s306: client receives whether present system time saves success response, whether judges present system time
It saves successfully, if so, executing step s309;Otherwise, it reports an error and exits;
Step s307: client receives the first encryption data, decrypts the first encryption data using sequence number and obtains last time and repairs
Change the PIN code time;
Step s308: client obtains present system time, compares with the last change PIN code time, judges current system
Whether the time phase difference of time and last change PIN code is less than preset time, if so, executing step s309;Otherwise, step is executed
Rapid s303;
For example, client obtains present system time, is compared with the last change PIN code time, judge present system time
Whether the time phase difference with last change PIN code is less than 90 days, if so, executing step s309;Otherwise, step s303 is executed;
Step s309: client pops up PIN code frame, and user is prompted to input PIN code;
Step s310: client receives the PIN code of user's input, judges whether the PIN code of user's input is correct, if
It is to execute step s312;Otherwise, step s311 is executed;
Step s311: client judges whether the number of user's input error PIN code is more than threshold value, is moved back if so, reporting an error
Out;Otherwise, record PIN code inputs number and present system time by mistake, and is sent to server, return step s309;
Step s312: client judges the type of intelligent cipher key equipment, if it is key intelligent cipher key equipment, display transaction
Information prompts user key-press operation, executes step s313;If it is being other types, signature is completed;
Optionally, if there is user's input error PIN code, step s312 before further include: client flushing errors PIN
Code data and input error number, and send flushing errors PIN code data and respond to server.
Step s313: client judges whether to receive signature result, if so, signature is completed;Otherwise, it reports an error and exits.
Embodiment 4
The embodiment of the present invention 4 provides a kind of method of record PIN code modification, as shown in Figure 4, comprising:
Step s401: client receives the signature request that server is sent, and first interface is called to obtain current intelligent key
The sequence number of equipment, and the sequence number for the intelligent cipher key equipment that will acquire returns to server;
For example, step s401 specifically: client receives the signature request of server transmission, and GetTokenInfo is called to connect
Mouth obtains the sequence number 0619020003110816 of current intelligent cipher key equipment, and sends the sequence of the intelligent cipher key equipment got
Row number 0619020003110816 gives server.
Step s402: server receives the sequence number of intelligent cipher key equipment, in the database according to the sequence number received
The modification time for searching the PIN code of corresponding intelligent cipher key equipment, when judging whether the PIN code modification for finding intelligent cipher key equipment
Between, if so, executing step s403;Otherwise, it returns and responds to client there is no PIN code modification time;
For example, step s402 specifically: server receives the sequence number 0619020003110816 of intelligent cipher key equipment, root
Search the PIN code modification time of corresponding intelligent cipher key equipment in the database according to the sequence number of the intelligent cipher key equipment received,
Judge whether to find the PIN code modification time of intelligent cipher key equipment, if so, executing step s403;Otherwise, return is not present
PIN code modification time accordingly gives client.
Step s403: server obtains the first encryption data using serial number encryption PIN code modification time, sends first and adds
Ciphertext data is to client;
For example, step s403 specifically: server uses SM1 symmetry algorithm pair using sequence number 0619020003110816
PIN code modification time data 20181011 are encrypted to obtain the first encryption data 25ED6A03F4D9168358BF8A7F9E7
440F8, the first encryption data sent is to client.
Step s404: client receives the data that server returns, and data type is judged, if it is there is no PIN codes to repair
Change time response, executes step s405;If it is the first encryption data, step s410 is executed;
Optionally, step s404 is specifically included: client receives the data that server returns, according to the length of the data of return
Degree judges the type of data, if the length of the data returned is less than or equal to preset value, what the server received returned
Data are to execute step s405 there is no the response of PIN code modification time;If the length of the data returned is greater than preset value,
The data that the server received returns are the first encryption data, execute step s410;
For example, step s404 is specifically included: client receives the data that server returns, and judges the length of the data returned
Degree, if it is less than or equal to 2 bytes, then the data for receiving server return are -1, and PIN code modification time is not present,
Execute step s405;If the length of the data returned is greater than 2 bytes, the data that the server received returns are character
String, there are PIN code modification time, the data received are the first encryption data.
For example, the character 25ED6A03F4D9168358BF8A7F9E7440F8 received.
Step s405: Client-Prompt user modifies PIN code, and user is waited to input PIN code;
Step s405 specifically: client pop-up modification PIN code prompting frame waits user to input PIN code.
Step s406: client receives the PIN code of user's input, judges the type of current intelligent cipher key equipment, if it is
Key intelligent cipher key equipment prompts user key-press confirmation, executes step s407;If it is other types, step s407 is executed;
For example, step s406 is specifically included: client receives the new PIN code of user's input, is sentenced according to hardware pid information
Break the type of current intelligent cipher key equipment, if PID is 0713, current intelligent cipher key equipment is key intelligent cipher key equipment, is mentioned
Show that user key-press confirms, executes step s407;Otherwise, current intelligent cipher key equipment is other kinds of intelligent cipher key equipment, is held
Row step s407.
Step s407: client judges whether PIN code is successfully modified, if so, it is successfully modified to send PIN code to server
Response;Otherwise, it reports an error and exits;
Optionally, step s407 specifically: client judges whether PIN code is successfully modified according to the result that interface returns,
If so, sending the successfully modified response of PIN code to server;Otherwise, it reports an error and exits;
For example, step s407 specifically: client judges whether PIN code is modified according to the result that interface C_SetPin is returned
Success, if the result returned is 0, PIN code is successfully modified, sends the successfully modified response of PIN code to server, executes step
s408;If the result returned is other values, PIN code modification failure reports an error and exits.
Whether step s408: server records and saves present system time, generate present system time and save and successfully ring
It answers, returns to whether present system time saves success response to client;
Step s409: client receives whether the current system that server returns saves successful response, judges current system
Whether the system time saves success, if so, executing step s412;Otherwise, it reports an error and exits;
Step s410: client receives the first encryption data, decrypts the first encryption data using sequence number and obtains last time and repairs
Change the time of PIN code;
Step s411: client obtains present system time, and the time comparison of obtained last change PIN code, judgement
Whether the time of present system time and last change PIN code differs less than preset time, if so, executing step s412;It is no
Then, return step s405;
For example, step s411 specifically: client obtains present system time, with obtained last change PIN code when
Between compare, judge whether the time of present system time and last change PIN code differed less than 90 days, if so, execute step
s412;Otherwise, return step s405.
Step s412: client pops up PIN code frame, and user is prompted to input PIN code;
Step s413: client receives the PIN code of user's input, judges whether the PIN code of user's input is correct, if
It is to execute step s415;Otherwise, step s414 is executed;
Step s414: client judges whether the number of user's input error PIN code is more than threshold value, is moved back if so, reporting an error
Out;Otherwise, record PIN code inputs number and present system time by mistake, and is sent to server, return step s412;
Optionally, step s414 further include: server reads the relevant date of user's input error PIN code of itself storage
Will.
Such as: judge whether pin code is correct according to the return value of interface, if pin code is incorrect, calling interface EP_
GetPinInfo obtains pin code residue degree, for example continuous input pin code errors number reaches 6 times and locks,
Step s415: client flushing errors PIN code related data, and flushing errors PIN code correlation is sent to server
Data response, judges the type of intelligent cipher key equipment, if it is key intelligent cipher key equipment, shows information on the screen, prompts
User key-press operation, executes step s416;If it is other types intelligent cipher key equipment, step s416 is executed;
Optionally, if the PIN code that user inputted mistake before also wraps before judging intelligent cipher key equipment type
It includes and sends the response of flushing errors PIN code data.
Step s416: client judges whether to receive signature result, if so, signature is completed;Otherwise, it reports an error and exits.
Embodiment 5
According to embodiments of the present invention 5, a kind of method of PIN code modification is provided, as shown in Figure 5, comprising:
Step s501: intelligent cipher key equipment power-up initializing reads the time of last change PIN code, judges last change
The time of PIN code whether there is, if so, executing step s502;Otherwise, step s503 is executed;
Step s502: intelligent cipher key equipment reads time and the present system time of last change PIN code, judges current system
Whether the difference of system time and the time of last change PIN code are greater than preset time threshold, if so, executing step s503;It is no
Then, normal use intelligent cipher key equipment;
For example, step s502 specifically: when intelligent cipher key equipment reads time and the current system of last change PIN code
Between, judge whether the time difference of present system time and last change PIN code is greater than 90 days, if so, executing step s503;
Otherwise, normal use intelligent cipher key equipment;
Optionally, normal use intelligent cipher key equipment specifically includes:
Step s502-1: intelligent cipher key equipment prompts user to input PIN code, judges whether the PIN code of user's input is correct,
If so, executing step s502-2;Otherwise, step s502-4 is executed;
Step s502-2: judging the type of intelligent cipher key equipment, if it is key intelligent cipher key equipment, display transaction letter
Breath prompts user key-press confirmation, executes step s502-3;If it is other kinds of intelligent cipher key equipment, step s502- is executed
3;
Step s502-3: intelligent cipher key equipment judges whether to receive signature result, if so, signature is completed;Otherwise, it reports
Mistake exits;
Step s502-4: intelligent cipher key equipment judges whether the number of user's input error PIN code is more than preset value, if
It is to report an error and exit;Otherwise, record PIN code inputs number, return step s502-1 by mistake;
Step s503: intelligent cipher key equipment prompts user to modify PIN code, executes step s504;
Step s504: whether intelligent cipher key equipment judges PIN code successfully modified, if so, present system time is recorded
In intelligent cipher key equipment, normal use intelligent cipher key equipment;Otherwise, it reports an error and exits;
Optionally, normal use intelligent cipher key equipment specific method repeats no more again with the description in step s502.
Embodiment 6
According to the present invention, provide it is a kind of for modifying the device of PIN code method, as shown in Figure 6, comprising:
Receiving module 101, for receiving user's operation;
Judgment module 102, for judging the type of the received user's operation of receiving module 101;
Optionally, judgment module 102 is also used to, and when the type for judging user's operation is the first operation, judges PIN code
It is whether successfully modified;
Logging modle 103, is used for, and when judgment module 102 judges that PIN is successfully modified, records present system time;
The module that reports an error 104, is used for, and when judgment module 102 judges that PIN code does not have successfully modified, reports an error;
Optionally, judgment module 102 is also used to, when the class for judging the user's operation that receiving module 101 receives
When type is the second operation, judge current intelligent key with the presence or absence of PIN code modification time;
Optionally, judgment module 102 is also used to, when judge current intelligent key there are when PIN code modification time, judgement
Whether PIN code modification time and present system time difference are more than preset value;
Cue module 105, is used for, when judgment module 102 judges that PIN code modification time and present system time difference do not have
When having more than preset value, user is prompted to input PIN code;
Optionally, receiving module 101 is also used to, and after cue module 105 prompts user to input PIN code, receives user
The PIN code of input;
Sending module 106, the PIN code for receiving receiving module 101 are sent to the intelligent cipher key equipment;
Optionally, cue module 105 is also used to, when that the PIN code received is sent to the intelligence is close for sending module 106
After key equipment, prompt the PIN code whether correct according to the response that intelligent cipher key equipment returns;
Optionally, cue module 105 is also used to, close according to intelligence after cue module 105 prompts PIN code incorrect
Whether the response prompt input error PIN code number that key equipment returns is more than threshold value;
Optionally, the module that reports an error 104 is also used to, and is more than threshold value when cue module 105 prompts input error PIN code number
When, it reports an error;
Logging modle 107, is used for, when cue module 105 prompts input error PIN code number to be less than threshold value, by PIN
Code inputs number by mistake and present system time is recorded in the intelligent cipher key equipment, triggers cue module 105.
It is a kind of for modifying the device of PIN code method further include:
Module is obtained, is used for, when judgment module 102 judges that user's operation is to insert intelligent key operation, is obtained current
The sequence number of intelligent key;
Optionally, judgment module 102 is also used to, when acquisition module gets the sequence number of intelligent key, according to sequence
Number judge whether there is PIN code modification time;
Read module is used for, when judgment module 102 judges that reading is worked as there are when PIN code modification time according to sequence number
Preceding intelligent key PIN code modification time triggers judgment module 102;
Optionally, cue module 105 is also used to, when judgment module 102 judges PIN code modification time and current system
Between difference when being less than preset value, prompt intelligent key insertion.
Optionally cue module 105 are also used to, when the judgment module judges the user's operation for modification PIN code
When operation, prompts user to input old PIN code, trigger the judgment module;
Optionally, judgment module 102 is also used to, and when cue module 105 prompts user to input old PIN code, judges old PIN
Whether code is correct;
Optionally, when cue module 105 is also used to judgment module 102 and judges that old PIN code is correct, prompt user's input new
PIN code;It is also used to when judgment module 102 judges that old PIN code is incorrect, user is prompted to input PIN code mistake;
Optionally, judgment module 102 is also used to, and after cue module 105 prompts user to input new PIN code, judges PIN
Whether code is successfully modified;
Optionally, logging modle is also used to, when judgment module judges that PIN code is successfully modified, when recording current system
Between, the successfully modified response of modification PIN code and present system time are sent to server;
Optionally, the module that reports an error is also used to, and when judgment module 102 judges that the PIN code is unmodified successful, is reported an error.
Optionally, judgment module 102 is also used to, and after cue module prompt user inputs PIN code mistake, judges user
Whether input error PIN code number is more than threshold value;
Optionally, the module that reports an error is also used to, when judgment module 102 judges that user's input error PIN code time is defeated more than threshold
Value, reports an error;
Optionally, logging modle is also used to, and is judged that user's input error PIN code time is defeated when judgment module 102 and is less than
When threshold value, record PIN code inputs number and present system time by mistake, sends PIN code and inputs number and present system time by mistake to service
Device.
Optionally, module is obtained to be specifically used for obtaining current intelligent key sequence number;
Optionally, judgment module 102 be also used to according to obtain module get current intelligent key sequence number judgement be
It is no that there are PIN code modification times.
Optionally, sending module is also used to, after logging modle record PIN code inputs secondary defeated and present system time by mistake,
It inputs PIN code by mistake time defeated and present system time and is sent to the server.
It is optionally, a kind of for modifying the device of PIN code method further include:
Module is removed, for removing user's input error password number;
Optionally, sending module, which is also used to send to server, removes the response of user's input error password number.
Claims (16)
1. a kind of method of PIN code modification characterized by comprising
Step s1: the user's operation to be received such as client judges the type of the user's operation when receiving user's operation,
If it is the first operation, step s2 is executed;If it is the second operation, step s3 is executed;
Step s2: the client waits user to modify PIN code, judges whether PIN code is successfully modified, if so, the client
End record present system time, terminates;Otherwise, it reports an error and exits;
Step s3: the client judges current intelligent cipher key equipment with the presence or absence of PIN code modification time, if so, executing step
Rapid s4;Otherwise, step s2 is executed;
Step s4: the client judges whether the PIN code modification time and present system time difference are more than preset value, such as
Fruit is to execute step s2;Otherwise, step s5 is executed;
Step s5: the Client-Prompt user inputs PIN code, receives the PIN code of user's input, the PIN code is sent to
Whether the intelligent cipher key equipment prompts the PIN code correct according to the response that the intelligent cipher key equipment returns, if so,
Operation is completed;Otherwise, step s6 is executed;
Step s6: whether the client prompts input error PIN code number according to the response that the intelligent cipher key equipment returns
More than threshold value, exited if so, reporting an error;Otherwise, step s7 is executed;
Step s7: the client inputs PIN code by mistake number and present system time is recorded in the intelligent cipher key equipment, returns
Return step s5.
2. the method as described in claim 1, which is characterized in that the step s1 is specifically included:
The user's operation to be received such as the client judges the user's operation type when receiving user's operation, if it is
PIN code operation is modified, step s2 is executed;If it is PIN code operation is tested, step s3 is executed.
3. the method as described in claim 1, which is characterized in that the step s1 further include: when judging user's operation type
When to insert intelligent key operation, following steps are executed:
Step s1-1: the client obtains the sequence number of current intelligent key, judges whether there is PIN according to the sequence number
Code modification time, if so, executing step s1-2;Otherwise, step s2 is executed;
Step s1-2: the client reads current intelligent key PIN code modification time, judge the PIN code modification time and
Whether present system time difference is more than preset value, if so, executing step s2;Otherwise, prompt intelligent key insertion, normally makes
Use intelligent key.
4. the method as described in right 1, which is characterized in that the step s2 is specifically included:
Step s2-1: the client waits user to modify PIN code, prompts user to input old PIN code, judges the old PIN code
It is whether correct, if so, executing step s2-2;Otherwise, prompt user inputs PIN code mistake, executes step s2-1;
Step s2-2: the Client-Prompt user inputs new PIN code, judges whether PIN code is successfully modified, if so, client
End record present system time, sends modification PIN code success response and present system time to server, terminates;Otherwise, it reports
Mistake exits.
5. method as claimed in claim 4, which is characterized in that in the step s2-1, when the judgment is no, prompt user defeated
After entering PIN code mistake further include: the client judges whether user's input error PIN code number is more than threshold value, if so,
It reports an error and exits;Otherwise, record PIN code inputs number and present system time by mistake, sends PIN code and inputs number and present system time by mistake
To server, step s2-1 is executed.
6. the method as described in claim 1, which is characterized in that when being judged as YES in the step s2, the client note
After record present system time, further includes:
Present system time is sent to server by the client.
7. the method as described in claim 1, which is characterized in that the step s3 is specifically included:
The client obtains the current intelligent key sequence number, judges whether there is PIN code modification according to the sequence number
Time, if so, executing step s4;Otherwise, step s2 is executed.
8. the method as described in claim 1, which is characterized in that in the step s7, the client record PIN code is inputed by mistake secondary
After several and present system time, further includes:
It inputs the PIN code by mistake number and present system time is sent to the server.
9. the method as described in claim 1, which is characterized in that when being judged as YES in the step s5, further includes:
The client removes user's input error password number, and sends to server end and remove user's input error password
Number response.
10. a kind of device for PIN code modification characterized by comprising;
Receiving module, for receiving user's operation;
Judgment module, for judging the type of the received user's operation of the receiving module;
The judgment module is also used to, and when the type for judging the user's operation is the first operation, judges whether PIN code is repaired
It is changed to function;
Logging modle is used for, and when the judgment module judges that the PIN is successfully modified, records present system time;
Report an error module, is used for, and when the judgment module judges that the PIN code does not have successfully modified, reports an error;
The judgment module is also used to, when the type for judging the user's operation that the receiving module receives is the second behaviour
When making, judge current intelligent key with the presence or absence of PIN code modification time;
The judgment module is also used to, when judging that current intelligent key there are when PIN code modification time, judges the PIN code
Whether modification time and present system time difference are more than preset value;
Cue module is used for, when the judgment module judges that the PIN code modification time and present system time difference do not have
When more than preset value, user is prompted to input PIN code;
The receiving module is also used to, and after cue module prompt user inputs PIN code, receives the PIN code of user's input;
Sending module, the PIN code for receiving the receiving module are sent to the intelligent cipher key equipment;
The cue module is also used to, after the PIN code received is sent to the intelligent cipher key equipment by sending module, root
Prompt the PIN code whether correct according to the response that the intelligent cipher key equipment returns;
The cue module is also used to, after cue module prompts the PIN code incorrect, according to the intelligent cipher key equipment
Whether the response prompt input error PIN code number of return is more than threshold value;
The module that reports an error is also used to, and when cue module prompt input error PIN code number is more than threshold value, is reported an error;
Logging modle is used for, and when cue module prompt input error PIN code number is less than threshold value, PIN code is inputed by mistake
Number and present system time are recorded in the intelligent cipher key equipment, trigger cue module.
11. device as claimed in claim 10, which is characterized in that further include:
Module is obtained, is used for, when the judgment module judges that the user's operation is to insert intelligent key operation, is obtained current
The sequence number of intelligent key;
The judgment module is also used to, when the acquisition module gets the sequence number of the intelligent key, according to the sequence
Row number judges whether there is PIN code modification time;
Read module is used for, when the judgment module is judged to read there are when PIN code modification time according to the sequence number
Current intelligent key PIN code modification time, triggers the judgment module;
The cue module is also used to, when the judgment module judges the PIN code modification time and present system time phase
When difference is less than preset value, intelligent key insertion is prompted.
12. device as claimed in claim 10, which is characterized in that further include:
The cue module prompts user defeated when the judgment module judges that the user's operation operates for modification PIN code
Enter old PIN code, triggers the judgment module;
The judgment module is also used to, and when cue module prompt user inputs old PIN code, judges that the old PIN code is
It is no correct;
The cue module is also used to the judgment module when judging that the old PIN code is correct, and user is prompted to input new PIN
Code;It is also used to when the judgment module judges that the old PIN code is incorrect, user is prompted to input PIN code mistake;
The judgment module is also used to, and after cue module prompt user inputs new PIN code, judges whether PIN code is repaired
It is changed to function;
The logging modle is also used to, and when the judgment module judges that PIN code is successfully modified, records present system time,
The successfully modified response of modification PIN code and present system time are sent to the server;
The module that reports an error is also used to, and when the judgment module judges that the PIN code is unmodified successful, is reported an error.
13. device as claimed in claim 12, which is characterized in that further include:
The judgment module is also used to, and after cue module prompt user inputs PIN code mistake, it is wrong to judge that user inputs
Accidentally whether PIN code number is more than threshold value;
The module that reports an error is also used to, when the judgment module judge user's input error PIN code it is time defeated be more than threshold value,
It reports an error;
The logging modle is also used to, when the judgment module, which judges that user's input error PIN code time is defeated, is less than threshold value,
Record PIN code inputs number and present system time by mistake, sends PIN code and inputs number and present system time by mistake to server.
14. device as claimed in claim 10, which is characterized in that further include:
The acquisition module is specifically used for obtaining the current intelligent key sequence number;
The judgment module is also used to be judged whether according to the current intelligent key sequence number that the acquisition module is got
There are PIN code modification times.
15. device as claimed in claim 10, which is characterized in that further include:
The sending module is also used to, after the logging modle, which records the PIN code, inputs secondary defeated and present system time by mistake,
It inputs the PIN code by mistake time defeated and present system time and is sent to the server.
16. device as claimed in claim 10, which is characterized in that further include:
Module is removed, for removing user's input error password number;
The sending module, which is also used to send to the server, removes the response of user's input error password number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910292422.3A CN110059474B (en) | 2019-04-12 | 2019-04-12 | PIN code modification method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910292422.3A CN110059474B (en) | 2019-04-12 | 2019-04-12 | PIN code modification method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110059474A true CN110059474A (en) | 2019-07-26 |
CN110059474B CN110059474B (en) | 2021-01-01 |
Family
ID=67317700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910292422.3A Active CN110059474B (en) | 2019-04-12 | 2019-04-12 | PIN code modification method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110059474B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111130805A (en) * | 2019-12-28 | 2020-05-08 | 飞天诚信科技股份有限公司 | Secure transmission method, electronic device, and computer-readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103413081A (en) * | 2013-08-29 | 2013-11-27 | 惠州Tcl移动通信有限公司 | After-password-input prompt method, password modifying method and electronic equipment |
JP5463516B2 (en) * | 2009-02-13 | 2014-04-09 | 日本電気株式会社 | Encryption key generation system, encryption key generation method, and encryption key generation program |
CN104217330A (en) * | 2014-08-26 | 2014-12-17 | 上海动联信息技术股份有限公司 | Anti-attack PIN (Personal Identification Number) code protection method |
CN104917763A (en) * | 2015-06-08 | 2015-09-16 | 飞天诚信科技股份有限公司 | PIN code caching method |
CN105809024A (en) * | 2014-12-31 | 2016-07-27 | 航天信息软件技术有限公司 | Password setting method and device |
CN106778217A (en) * | 2016-11-29 | 2017-05-31 | 维沃移动通信有限公司 | A kind of mobile terminal unlocks error handling method and mobile terminal |
CN107135205A (en) * | 2017-04-14 | 2017-09-05 | 天地融科技股份有限公司 | A kind of method for network access and system |
-
2019
- 2019-04-12 CN CN201910292422.3A patent/CN110059474B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5463516B2 (en) * | 2009-02-13 | 2014-04-09 | 日本電気株式会社 | Encryption key generation system, encryption key generation method, and encryption key generation program |
CN103413081A (en) * | 2013-08-29 | 2013-11-27 | 惠州Tcl移动通信有限公司 | After-password-input prompt method, password modifying method and electronic equipment |
CN104217330A (en) * | 2014-08-26 | 2014-12-17 | 上海动联信息技术股份有限公司 | Anti-attack PIN (Personal Identification Number) code protection method |
CN105809024A (en) * | 2014-12-31 | 2016-07-27 | 航天信息软件技术有限公司 | Password setting method and device |
CN104917763A (en) * | 2015-06-08 | 2015-09-16 | 飞天诚信科技股份有限公司 | PIN code caching method |
CN106778217A (en) * | 2016-11-29 | 2017-05-31 | 维沃移动通信有限公司 | A kind of mobile terminal unlocks error handling method and mobile terminal |
CN107135205A (en) * | 2017-04-14 | 2017-09-05 | 天地融科技股份有限公司 | A kind of method for network access and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111130805A (en) * | 2019-12-28 | 2020-05-08 | 飞天诚信科技股份有限公司 | Secure transmission method, electronic device, and computer-readable storage medium |
CN111130805B (en) * | 2019-12-28 | 2022-09-06 | 飞天诚信科技股份有限公司 | Secure transmission method, electronic device, and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110059474B (en) | 2021-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2579141B1 (en) | Method and device for unlocking operating system | |
JPH09503877A (en) | Personal identification system | |
CN109687975B (en) | Method and device for realizing off-line initialization of hardware wallet | |
CN108093392B (en) | Method for unlocking SIM card, mobile terminal and storage medium | |
CN106713370B (en) | A kind of identity identifying method, server and mobile terminal | |
CN107369234B (en) | Unlocking method and system | |
CN101141322B (en) | Multi-computer switch system capable of detecting keyword input and method thereof | |
CN107438049A (en) | A kind of malice logs in recognition methods and device | |
CN108229157A (en) | Server attack early warning method and apparatus | |
CN106485261A (en) | A kind of method and apparatus of image recognition | |
CN110059474A (en) | A kind of method and device of PIN code modification | |
CN102915203A (en) | Method and system for unlocking mobile terminal | |
US20210075812A1 (en) | A system and a method for sequential anomaly revealing in a computer network | |
CN115694807A (en) | Password intelligent verification prompting method and system and electronic equipment | |
CN110765431A (en) | Multi-user fingerprint or password login method and management system thereof | |
CN109583205A (en) | A kind of data information security management method | |
CN109979062A (en) | A kind of smart lock chip module control method and smart lock chip module | |
CN113836522A (en) | Password management method and device of monitoring equipment | |
CN113961904A (en) | Screen unlocking method and device, electronic equipment and readable medium | |
JP5315662B2 (en) | Electronic device and program | |
CN100459757C (en) | Method cipher stealing information detecting mobile communication terminal set | |
CN112671738A (en) | Login method, device, terminal and storage medium of enterprise internal system | |
CN105631250A (en) | Method and device for obtaining image information of users illegally accessing to application programs | |
CN111949976B (en) | Product enabling method, device and storage medium based on offline key | |
CN117473560B (en) | Method and device for realizing work of online OTP (one time programmable) equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |