venshine/CheckPasswordStrength
venshine/CheckPasswordStrength has 64 GitHub stars and 24 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-12 18:58 UTC. Last push 2026-11-09.
🔥 A Java library for checking password strength
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 업데이트 지연
- in 15 days
- 업데이트 지연
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalCheckPasswordStrength
English | 简体中文
CheckPasswordStrength is an open-source Java library for checking password strength.
ScreenShot

| Light | Dark | Empty input |
|---|---|---|
![]() |
![]() |
![]() |
The Swing sample scores passwords as you type, shows the raw return values of both APIs, and comes with samples covering all five levels, each labeled with the rule or composition behind its score. Run it from the repository root (Gradle needs JDK 17 or later; the sample itself runs on Java 8+):
./gradlew :sample:run
Desc
Dictionary
{"password", "abc123", "iloveyou", "adobe123", "123123", "sunshine","1314520", "a1b2c3", "123qwe", "aaa111", "qweasd", "admin", "passwd"}
Level
- 0-3 : [easy]
- 4-6 : [medium]
- 7-9 : [strong]
- 10-12 : [very strong]
- >12 : [extremely strong]
Usage
Pure Java with no third-party dependencies. It can be called directly from both Java and Kotlin (JVM / Android).
Java:
import com.wx.pwd.CheckStrength;
public class Demo {
public static void main(String[] args) {
String passwd = "2hAj5#mne-ix.86H";
System.out.println(CheckStrength.checkPasswordStrength(passwd));
}
}
CheckStrength.LEVEL level = CheckStrength.getPasswordLevel(passwd); // EASY / MEDIUM / STRONG / VERY_STRONG / EXTREMELY_STRONG
Both methods throw IllegalArgumentException when the password is null ("password is null") or empty ("password is empty"); any other string, including whitespace, gets a score from 0 to 14. Before 2.1.0, blank strings and the literal "null" also threw.
Kotlin:
import com.wx.pwd.CheckStrength
fun main() {
val passwd = "2hAj5#mne-ix.86H"
println(CheckStrength.checkPasswordStrength(passwd)) // strength score
when (CheckStrength.getPasswordLevel(passwd)) {
CheckStrength.LEVEL.EASY, CheckStrength.LEVEL.MEDIUM -> println("Password is too weak")
else -> println("Password is strong enough")
}
}
Download
Gradle (via JitPack):
repositories {
maven { url = 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.venshine:CheckPasswordStrength:2.1.0'
}
Gradle Kotlin DSL:
repositories {
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.venshine:CheckPasswordStrength:2.1.0")
}
Jar:
2.1.0 tightens several scoring rules (length gates, repeated patterns, sequences inside the password, embedded dates), so short, repeated or sequence-based passwords may score lower than in 2.0.0. Blank strings and the literal
"null"no longer throw. See the CHANGELOG.
2.0.0 fixes consecutive sequence detection, dictionary word detection and a crash on very long numeric passwords, so some passwords score differently than in 1.x. The enum
LEVEL.MIDIUMhas been renamed toLEVEL.MEDIUM. See the CHANGELOG.
Test
./test.sh
About
- Email: [email protected]
Credits
The Swing sample bundles these fonts, both licensed under the SIL Open Font License 1.1 (license texts in sample/licenses/):
- Space Grotesk: Copyright 2020 The Space Grotesk Project Authors
- JetBrains Mono: Copyright 2020 The JetBrains Mono Project Authors
The library itself bundles no fonts.
License
Copyright (C) 2014 [email protected]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
관련 프로젝트 살펴보기
trimstray/the-book-of-secret-knowledge
영감을 주는 목록, 매뉴얼, 치트시트, 블로그, 팁, 원라이너, CLI/웹 도구 등을 모은 컬렉션.
258,126 스타Hack-with-Github/Awesome-Hacking
해커, 펜테스터, 보안 연구자를 위한 다양한 Awesome 목록 모음.
125,360 스타swisskyrepo/PayloadsAllTheThings
웹 애플리케이션 보안과 모의 침투 테스트/CTF에 유용한 페이로드 및 우회 방법 목록.
82,623 스타caddyserver/caddy
빠르고 확장 가능한 멀티플랫폼 HTTP/1-2-3 웹 서버이며, 자동 HTTPS를 지원합니다
79,020 스타

