CN105718787A - Router password complexity calibration method - Google Patents
Router password complexity calibration method Download PDFInfo
- Publication number
- CN105718787A CN105718787A CN201610085966.9A CN201610085966A CN105718787A CN 105718787 A CN105718787 A CN 105718787A CN 201610085966 A CN201610085966 A CN 201610085966A CN 105718787 A CN105718787 A CN 105718787A
- Authority
- CN
- China
- Prior art keywords
- password
- router
- complexity
- described router
- character
- 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.)
- Pending
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)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a router password complexity calibration method.A weighted inspection method is adopted to endow different weights wi (i = 1, 2, 3...n) for different types of characters Si (i = 1, 2, 3...n) in a router password, and when the number of a certain Si is not zero, the total weight of the Si is wi, the total weight of the router password is Sigma wi (i = 1, 2, 3...n), and the complexity of the router password is judged according to the total weight Sigma wi.The router password complexity calibration method firstly adopts the weighted inspection method to endow different weights for numbers, letters, special characters and the like respectively, calibrates the complexity of the password through the calculation of the total weight of the password, is relatively simple and quick in algorithm, can also prompt the password complexity of a user according to the calibration results in real time, is a relatively simple and effective method and is suitable for application on various embedded devices, such as a router.
Description
Technical field
The present invention relates to network communication field, particularly to a kind of router password complexity method of calibration.
Background technology
At present, Internet technology is more and more ripe, and the privacy of information requires more and more higher, and router also becomes a node of information gathering step by step from single communication channel, thus also beginning to protection privacy of user is played a role.
Password obtains a user configured key as logging in router, becomes more and more important.At present, a kind of main method of password cracking is the method for exhaustion, so needing the password of router is set to have certain complexity and length.The permutation and combination that the numeral (0-9) of same length produces is less than the permutation and combination that letter (a-Z) produces, because numeral only 10, and letter case sensitive words have 52, the words of spcial character are just more.
In order to point out user to adopt complex password when inputting password, the method detection user generally using the verification of password complexity inputs the complexity of password.Least easily cracked by the password of numeral, letter and the combination of some spcial characters, pure digi-tal the password combined the most easily cracks, the password of numeral and monogram not easily crack.
The server of current main flow all uses regular expression, and the password of user's input is mated and added up, this method highly versatile, but the complexity of method is high, is not suitable for the password complexity verification of this kind of lightweight equipment of router.
Summary of the invention
Present invention aim to address that the method adopting regular expression verification password complexity at present is complex, be not suitable for the technical problem of the password complexity verification of this kind of lightweight equipment of router.
For realizing above goal of the invention, the present invention provides a kind of router password complexity method of calibration, described router password is adopted weighed detecting method method, to character Si (i=1 different types of in described router password, 2,3 ... n) give different weight w i (i=1 respectively, 2,3 ... n), when the quantity of certain character Si is not 0, then the total weight value of this kind of character Si is wi, then the total weight value of described router password is w=∑ wi (i=1,2,3 ... n), the complexity of described router password is judged according to described total weight value w.
Further, in described router password, different types of character Si is numeral S1, letter S2 and spcial character S3.
Further, described weighed detecting method method comprises the steps:
(1) different weight w 1, w2 and w3 and w1 < w2 < w3 are given respectively to the digital S1 in described router password, letter S2 and spcial character S3;
(2) obtain the length L of described router password, add up quantity a, b and the c of the digital S1 in described router password, letter S2 and spcial character S3, a+b+c=L respectively;
(3) the total weight value w of described router password is calculated: if a ≠ 0, then w=w1;And if b ≠ 0, then w=w1+w2;And if c ≠ 0, then w=w1+w2+w3;
(4) complexity of described router password is judged according to w value.
Further, in described step (2), obtained the length L of described router password by function strlen.
Further, in described step (4), judge that according to described w value the process of described router password complexity is:
If w=w1, then described router password is pure digi-tal, and the complexity of the interface for password input prompting user cipher of router is low, is not suitable as password and uses;If w=w2, then described router password is pure letter;If w=w1+w2, then described router password is numeral and the combination of letter;If w >=w3, then described router password includes spcial character, and the complexity of the interface for password input prompting user cipher of router is high, is suitable as password and uses.
Further, described w1=1, w2=2, w3=4.
Further, in described step (4), judge that according to described w value the process of described router password complexity is:
If w=1, then described router password is pure digi-tal, and the complexity of the interface for password input prompting user cipher of router is low, is not suitable as password and uses;If w=2, then described router password is pure letter;If w=3, then described router password is numeral and the combination of letter;If w >=4, then described router password includes spcial character, and the complexity of the interface for password input prompting user cipher of router is high, is suitable as password and uses.
Further, also the described router password after described weighed detecting method is adopted repeatability verification, detects the character whether comprising repetition in described router password, as comprised repeat character (RPT), then the complexity of the interface for password input prompting user cipher of router is low, is not suitable as password and uses.
Compared with prior art, the invention has the beneficial effects as follows:
The present invention is initially with weighted check method, different weights are given respectively to different types of characters such as numeral, letter and spcial characters, by calculating the total weight value of password, the complexity of password is tested, algorithm is relatively simple fast, can also, according to the complexity of check results real-time prompting user cipher, be the simple and effective method of a comparison;Additionally, particularly with the password that length is shorter, being repeated property verification again on the basis of weighed detecting method, get rid of the password with repeat character (RPT), improve the effect of cryptographic check further, the very first time effectively points out the password that complexity is low to user, is adapted on the various embedded devices such as router and uses.
Accompanying drawing explanation
Fig. 1 is the flow chart of the embodiment of the present invention 1;
Fig. 2 is the flow chart of the embodiment of the present invention 2;
Fig. 3 is the flow chart of the embodiment of the present invention 3;
Fig. 4 is the flow chart of the embodiment of the present invention 4;
Fig. 5 is the flow chart of the embodiment of the present invention 5.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
Embodiment 1:
As it is shown in figure 1, the router password complexity method of calibration of the present invention, step is as follows:
Step S100: to character Si different types of in router password (i=1,2,3 ... n) give different weight w i (i=1,2,3 ... n) respectively;
Step S110: obtain the length L of router password, respectively variety classes character Si (i=1,2,3 ... quantity n) in statistics password;
Step S120: calculate the total weight value w of router password;
Step S130: judge the complexity of router password according to total weight value w.
Embodiment 2
As in figure 2 it is shown, the router password complexity method of calibration of the present invention, step is as follows:
Step S200: to character Si different types of in router password (i=1,2,3 ... n) give different weight w i (i=1,2,3 ... n) respectively;
Step S210: obtain the length L of router password, respectively variety classes character Si (i=1,2,3 ... quantity n) in statistics password;
Step S220: calculate the total weight value w of router password;
Step S230: judge the complexity of router password according to total weight value w;
Step S240: further according to whether having repeat character (RPT) in router password to judge the complexity of password.
Embodiment 3
As it is shown on figure 3, the router password complexity method of calibration of the present invention, step is as follows:
Step S300: to character different types of in router password: numeral, letter and spcial character give different weight w 1, w2 and w3 and w1 < w2 < w3 respectively;
Step S310: obtain the length L of router password, respectively quantity a, b and the c of numeral, letter and spcial character in statistics password, and a+b+c=L;
Step S320: calculate the total weight value w of router password, if a ≠ 0, then w=w1;And if b ≠ 0, then w=w1+w2;And if c ≠ 0, then w=w1+w2+w3;
Step S330: judge the complexity of router password according to total weight value w;
Step S340: further according to whether having repeat character (RPT) in router password to judge the complexity of password.
Embodiment 4
As shown in Figure 4, the router password complexity method of calibration of the present invention, step is as follows:
Step S400: to character different types of in router password: numeral, letter and spcial character give different weight w 1, w2 and w3 and w1 < w2 < w3 respectively;
Step S410: obtained the length L of router password by function strlen, respectively quantity a, b and the c of numeral, letter and spcial character in statistics password, and a+b+c=L;
Step S420: calculate the total weight value w of router password, if a ≠ 0, then w=w1;And if b ≠ 0, then w=w1+w2;And if c ≠ 0, then w=w1+w2+w3;
Step S430: judge the complexity of router password according to total weight value w, if w=w1, then router password is pure digi-tal, and the complexity of the interface for password input prompting user cipher of router is low, is not suitable as password and uses;If w=w2, then described router password is pure letter;If w=w1+w2, then described router password is numeral and the combination of letter;If w >=w3, then described router password includes spcial character, and the complexity of the interface for password input prompting user cipher of router is high, is suitable as password and uses;
Step S440: further according to whether having repeat character (RPT) in router password to judge the complexity of password.
Embodiment 5
As it is shown in figure 5, the router password complexity method of calibration of the present invention, step is as follows:
Step S500: to character different types of in router password: numeral, letter and spcial character give different weights 1,2 and 4 respectively;
Step S510: obtained the length L of router password by function strlen, respectively quantity a, b and the c of numeral, letter and spcial character in statistics password, and a+b+c=L;
Step S520: calculate the total weight value w of router password, if a ≠ 0, then w=1;And if b ≠ 0, then w=w+2;And if c ≠ 0, then w=w+4;;
Step S530: judge the complexity of router password according to total weight value w, if w=1, then described router password is pure digi-tal, and the complexity of the interface for password input prompting user cipher of router is low, is not suitable as password and uses;If w=2, then described router password is pure letter;If w=3, then described router password is numeral and the combination of letter;If w >=4, then described router password includes spcial character, and the complexity of the interface for password input prompting user cipher of router is high, is suitable as password and uses;
Step S540: further according to whether having repeat character (RPT) in router password to judge the complexity of password.
In addition to the implementation, the present invention can also have other embodiments, all employings to be equal to replacement or the technical scheme of equivalent transformation formation, all falls within the protection domain of application claims.
Claims (8)
1. router password complexity method of calibration, it is characterized in that, described router password is adopted weighed detecting method method, to character Si (i=1 different types of in described router password, 2,3 ... n) give different weight w i (i=1 respectively, 2,3 ... n), when the quantity of certain character Si is not 0, then the total weight value of this kind of character Si is wi, then the total weight value of described router password is w=∑ wi (i=1,2,3 ... n), the complexity of described router password is judged according to described total weight value w.
2. the method for claim 1, it is characterised in that in described router password, different types of character Si is numeral S1, letter S2 and spcial character S3.
3. method as claimed in claim 2, it is characterised in that described weighed detecting method method comprises the steps:
(1) different weight w 1, w2 and w3 and w1 < w2 < w3 are given respectively to the digital S1 in described router password, letter S2 and spcial character S3;
(2) obtain the length L of described router password, add up quantity a, b and the c of the digital S1 in described router password, letter S2 and spcial character S3, a+b+c=L respectively;
(3) the total weight value w of described router password is calculated: if a ≠ 0, then w=w1;And if b ≠ 0, then w=w1+w2;And if c ≠ 0, then w=w1+w2+w3;
(4) complexity of described router password is judged according to w value.
4. method as claimed in claim 3, it is characterised in that in described step (2), obtained the length L of described router password by function strlen.
5. method as claimed in claim 3, it is characterised in that in described step (4), judge that according to described w value the process of described router password complexity is:
If w=w1, then described router password is pure digi-tal, and the complexity of the interface for password input prompting user cipher of router is low, is not suitable as password and uses;If w=w2, then described router password is pure letter;If w=w1+w2, then described router password is numeral and the combination of letter;If w is > w3, then described router password includes spcial character, and the complexity of the interface for password input prompting user cipher of router is high, is suitable as password and uses.
6. method as claimed in claim 5, it is characterised in that described w1=1, w2=2, w3=4.
7. method as claimed in claim 6, it is characterised in that in described step (4), judge that according to described w value the process of described router password complexity is:
If w=1, then described router password is pure digi-tal, and the complexity of the interface for password input prompting user cipher of router is low, is not suitable as password and uses;If w=2, then described router password is pure letter;If w=3, then described router password is numeral and the combination of letter;If w >=4, then described router password includes spcial character, and the complexity of the interface for password input prompting user cipher of router is high, is suitable as password and uses.
8. the method as described in any one of claim 1-7, it is characterized in that, also the described router password after described weighed detecting method is adopted repeatability verification, detect the character whether comprising repetition in described router password, as comprised repeat character (RPT), then the complexity of the interface for password input prompting user cipher of router is low, is not suitable as password and uses.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610085966.9A CN105718787A (en) | 2016-02-15 | 2016-02-15 | Router password complexity calibration method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610085966.9A CN105718787A (en) | 2016-02-15 | 2016-02-15 | Router password complexity calibration method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105718787A true CN105718787A (en) | 2016-06-29 |
Family
ID=56155921
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610085966.9A Pending CN105718787A (en) | 2016-02-15 | 2016-02-15 | Router password complexity calibration method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105718787A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109858290A (en) * | 2019-01-15 | 2019-06-07 | 招银云创(深圳)信息技术有限公司 | Cipher-code input method, device, computer equipment and storage medium |
CN109933973A (en) * | 2019-01-24 | 2019-06-25 | 平安科技(深圳)有限公司 | Cryptographic check method, apparatus, computer equipment and storage medium |
CN110245488A (en) * | 2019-05-21 | 2019-09-17 | 平安普惠企业管理有限公司 | Cipher Strength detection method, device, terminal and computer readable storage medium |
-
2016
- 2016-02-15 CN CN201610085966.9A patent/CN105718787A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109858290A (en) * | 2019-01-15 | 2019-06-07 | 招银云创(深圳)信息技术有限公司 | Cipher-code input method, device, computer equipment and storage medium |
CN109858290B (en) * | 2019-01-15 | 2021-04-20 | 招银云创信息技术有限公司 | Password input method, device, computer equipment and storage medium |
CN109933973A (en) * | 2019-01-24 | 2019-06-25 | 平安科技(深圳)有限公司 | Cryptographic check method, apparatus, computer equipment and storage medium |
CN110245488A (en) * | 2019-05-21 | 2019-09-17 | 平安普惠企业管理有限公司 | Cipher Strength detection method, device, terminal and computer readable storage medium |
CN110245488B (en) * | 2019-05-21 | 2023-11-17 | 国信金宏信息咨询有限责任公司 | Method, device, terminal and computer readable storage medium for detecting password strength |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Wang et al. | fuzzyPSM: A new password strength meter using fuzzy probabilistic context-free grammars | |
CN102647422B (en) | Phishing website detection method and device | |
CN111052704A (en) | Network analytics workflow acceleration | |
CN102523223B (en) | Trojan detection method and apparatus thereof | |
CN104899499B (en) | The Web verification code generation methods searched for based on Internet picture | |
CN105718787A (en) | Router password complexity calibration method | |
CN106997437B (en) | System vulnerability protection method and device | |
CN106330611A (en) | Anonymous protocol classification method based on statistical feature classification | |
Wang et al. | Characterizing and detecting malicious crowdsourcing | |
Zhong et al. | Stealthy malware traffic-not as innocent as it looks | |
Zhao et al. | Using fuzzy logic and entropy theory to risk assessment of the information security | |
CN113065859A (en) | Information verification method based on block chain | |
CN113746804B (en) | DNS hidden channel detection method, device, equipment and storage medium | |
Bródka et al. | Profile cloning detection in social networks | |
CN103093049A (en) | Prediction method and prediction system for malicious code propagation facing social network | |
WO2017101427A1 (en) | Website password generation method and device | |
CN108804501A (en) | A kind of method and device of detection effective information | |
Bartos et al. | IFS: Intelligent flow sampling for network security–an adaptive approach | |
Lu et al. | Network security situation awareness based on network simulation | |
Jiang et al. | Detecting and validating sybil groups in the wild | |
WO2013028683A2 (en) | Determining validity of sip messages without parsing | |
CN104836700B (en) | NAT host number detection methods based on IPID and probability statistics model | |
CN111092723A (en) | Data privacy protection quantum computing method | |
Xue et al. | Bound maxima as a traffic feature under DDOS flood attacks | |
Zhang et al. | Theoretical and practical aspects of multiple samples correlation power analysis |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160629 |