flagflag  

zxcvbn anchor.png

  • パスワードの複雑さを計算するツール
     
Page Top

zxcvbn anchor.png

Page Top

zxcvbn4j anchor.png

Page Top
jdk-13 anchor.png
  • jdk-13 ではエラーを起こす (2019 10/22)
  • jdk-8 は OK
     
Page Top

Sample for zxcvbn4j anchor.png

Page Top
CheckPass.java anchor.png
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();
       }
   }
}
Page Top
コンパイル&実行 anchor.png
javac -classpath ./zxcvbn-1.3.0.jar CheckPass.java
java -classpath .:./zxcvbn-1.3.0.jar CheckPass
 

Front page   Freeze Diff Backup Copy Rename Reload   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)
Counter: 589, today: 1, yesterday: 2
Last-modified: 2019-10-22 (Tue) 22:07:31 (JST) (1653d) by iseki

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

79 user(s) are online (5 user(s) are browsing xpwiki)

Members: 0
Guests: 79

more...

Access Counter

Today : 2280228022802280
Yesterday : 7722772277227722
Total : 2343376123433761234337612343376123433761234337612343376123433761
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com