flagflag  
3: 2019-10-22 (Tue) 13:38:46 iseki source Cur: 2019-10-22 (Tue) 22:07:31 iseki source
Line 10: Line 10:
#br #br
*** zxcvbn4j [#b663ab8c] *** zxcvbn4j [#b663ab8c]
 +- zxcvbn を改造
 +- サーバサイド用 Java
- https://nulab.com/ja/blog/nulab/password​-strength/ - https://nulab.com/ja/blog/nulab/password​-strength/
- https://github.com/nulab/zxcvbn4j - https://github.com/nulab/zxcvbn4j
-- サーバサイド用+#br 
**** jdk-13 [#a6a1f7b4] **** jdk-13 [#a6a1f7b4]
- jdk-13 ではエラーを起こす (2019 10/22) - jdk-13 ではエラーを起こす (2019 10/22)
- jdk-8 は OK - jdk-8 は OK
 +#br
 +*** Sample for zxcvbn4j [#vbc939b9]
 +
 +**** CheckPass.java [#g004c8dc]
 +
 + import java.io.BufferedReader;
 + import java.io.IOException;
 + import java.io.InputStreamReader;
 + 
 + import com.nulabinc.zxcvbn.*;
 + 
 + class CheckPass
 + {
 +   public static void main(String[] args)
 +   {
 +       String str = null;
 +       double score = 0.0;
 + 
 +       Zxcvbn zxcvbn = new Zxcvbn();
 +       InputStreamReader ist = new InputStreamReader(System.in);
 +       BufferedReader buf = new BufferedReader(ist);
 + 
 +       try {
 +           System.err.print("Input String: ");
 +           str = buf.readLine();
 +           while(str!=null) {
 +               Strength strength = zxcvbn.measure(str);
 +               //score = strength.getGuesses();
 +               score = strength.getGuessesLog10();
 +               System.out.println("[" + str + "] is " + score);
 +               System.err.print("\nInput String : ");
 +               str = buf.readLine();
 +           }
 +       }
 +       catch (IOException e) {
 +           e.printStackTrace();
 +       }
 +   }
 + }
 +
 +**** コンパイル&実行 [#ja8d4350]
 + javac -classpath ./zxcvbn-1.3.0.jar CheckPass.java
 + java -classpath .:./zxcvbn-1.3.0.jar CheckPass
#br #br


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

76 user(s) are online (27 user(s) are browsing xpwiki)

Members: 0
Guests: 76

more...

Access Counter

Today : 5048504850485048
Yesterday : 1306913069130691306913069
Total : 2362984423629844236298442362984423629844236298442362984423629844
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com