java弱口令代码java弱口令代码

时间:2013-11-08 14:01:45
【文件属性】:
文件名称:java弱口令代码java弱口令代码
文件大小:3KB
文件格式:RAR
更新时间:2013-11-08 14:01:45
java资料 public class JJL2 { public static void main(String[] args) { System.out.println(new JJL2().checkPassword("123sdhgh*/-/*")); } private boolean checkPassword(String password) { int numberCount = 0; int letterCount = 0; int otherCount = 0; for (int i = 0; i < password.length(); i++) { char temp = password.charAt(i); if (temp >= 48 && temp <= 57) { numberCount++; }else if((temp >= 65 && temp <= 90) || (temp >= 97 && temp <= 122)){ letterCount++; }else{ otherCount++; } if (numberCount > 0 && letterCount > 0 && otherCount > 0) { return true; } } return false; } }
【文件预览】:
新建 java 文档.doc

网友评论

  • 原来就只是一个单纯的方法代码~~
  • 可以用,不错的程序
  • 虽然不知道是什么 感觉很厉害的样子
  • 下载的内容和资源简介一样T_T。代码这里可能有点小问题,if判断中需要在加个continue不然有些情况会造成重复计数。