Created
September 5, 2021 17:18
Password Strength Estimation Script - Top 200 of 2020 (without additional dictionary)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import me.gosimple.nbvcxz.Nbvcxz | |
import java.io.File | |
fun main() { | |
val passwords = mutableListOf<String>() | |
File("my_passwords.txt").useLines { lines -> lines.forEach { passwords.add(it) }} | |
val nbvcxz = Nbvcxz() | |
File("results.csv").printWriter().use { out -> | |
out.append("Rank, Password, Basic Score (0-4), Entropy (0-multiple hundreds)\n") | |
passwords.forEachIndexed { index, s -> | |
val result = nbvcxz.estimate(s) | |
out.append("${index + 1}, $s, ${result.basicScore}, ${result.entropy}\n") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment