https://github.com/thenishchalraj/passwordstrengthbar
An android library to show the password strength using four strength bars with colours set for each and methods available to play with strength of bars.
https://github.com/thenishchalraj/passwordstrengthbar
android android-application android-development android-library android-ui custombar hacktoberfest java password-strength passwordstrengthbar-library strength-bars
Last synced: 4 months ago
JSON representation
An android library to show the password strength using four strength bars with colours set for each and methods available to play with strength of bars.
- Host: GitHub
- URL: https://github.com/thenishchalraj/passwordstrengthbar
- Owner: thenishchalraj
- License: apache-2.0
- Created: 2018-10-06T12:21:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-22T05:37:02.000Z (over 4 years ago)
- Last Synced: 2025-04-09T19:46:47.180Z (about 1 year ago)
- Topics: android, android-application, android-development, android-library, android-ui, custombar, hacktoberfest, java, password-strength, passwordstrengthbar-library, strength-bars
- Language: Kotlin
- Homepage:
- Size: 1.21 MB
- Stars: 16
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Password Strength Bar
### See the strength of your password through separated strength bars
## Preview of PasswordStrengthBar

### Overview of PasswordStrengthBar library
* Can be used to see password strength
* Freely set the colour of the strength bars
## Using PasswordStrengthBar Library in your Android application
1. Add it in your root build.gradle at the end of repositories:
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
2. Add this in your app's build.gradle
```groovy
dependencies {
implementation 'com.github.thenishchalraj:PasswordStrengthBar:Tag'
}
```
3. To use this in XML File, use
```XML
```
3. Methods of use with variable of PasswordStrengthBar
```
//initialize or declare
PasswordStrengthBar passwordStrengthBar;
...
//methods available
setStrengthColor(int noStrengthColor, int color1, int color2, int color3, int color4)
getMaxStrength()
getMinStrength()
setMaxStrength(int max)
setMinStrength(int min)
getStrength()
setStrength(int strength)
//
```
### TODO
* More features related to Password and Strength bars' functionality.
* Vertical password strength bars.
## If this library helps you in anyway, show your love :heart: by putting a :star: on this project :v:
## To learn how to write your own Android Library
Follow [this](https://medium.com/mindorks/want-to-write-your-first-android-library-7bba6ca4e0c5) medium link and start today.
### Contributing to PasswordStrengthBar
Fork and make your changes/improvements.
All pull requests are welcome in the dev branch.
Note: do not send requests directly to master.