In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In order to solve the problem of how to customize how to obtain password strength in C language, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
Generally, when entering a password when registering, there will be a judgment of password strength. Passwords can be judged by general rules according to character type and length.
# include # include # define PASSWD_STRONG_MIN_LENGTH 10typedef enum {PASSWORD_INVALID=0, PASSWORD_WEAK, PASSWORD_NORMAL, PASSWORD_STRONG} PasswordStrength;PasswordStrength GetPasswordStrength (char * password) {if (password = = NULL) {return PASSWORD_INVALID;} int iSymbol=0,iNumber=0,iLetter=0; int passwd_len=0; char * pChar=password; passwd_len= strlen (password) If (passwd_len
< 6){ /*密码字符数小于6不满足规则,无效密码*/ return PASSWORD_INVALID; } for(;*pChar != '\0';pChar++){ if(*pChar >='0' & & * pChar ='A'& & * pChar ='a'& & * pChar
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.