flagflag  If you want to see English page, please click "English" Button at Left.
2: 2019-10-21 (月) 00:03:16 iseki ソース 現: 2019-10-22 (火) 22:07:31 iseki ソース
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 ではエラーを起こす (2019 10/22) 
 +- 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


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
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
<今日>

オンライン状況

80 人のユーザが現在オンラインです。 (8 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 80

もっと...

アクセスカウンタ

今日 : 1353613536135361353613536
昨日 : 1716817168171681716817168
総計 : 2350999723509997235099972350999723509997235099972350999723509997
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com