zxcvbn
- https://github.com/dropbox/zxcvbn
- パスワードの複雑さを計算するツール
- Dropbox社製
- Java Script
zxcvbn4j
- zxcvbn を改造
- サーバサイド用 Java
- https://nulab.com/ja/blog/nulab/password-strength/
- https://github.com/nulab/zxcvbn4j
CheckPass.java
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(); } } }
Counter: 582,
today: 1,
yesterday: 0
最終更新: 2019-10-22 (火) 22:07:31 (JST) (1645d) by iseki