Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RHSaliya/PasswordStrengthView
This is an android library to represent password strength.
https://github.com/RHSaliya/PasswordStrengthView
Last synced: about 2 months ago
JSON representation
This is an android library to represent password strength.
- Host: GitHub
- URL: https://github.com/RHSaliya/PasswordStrengthView
- Owner: RHSaliya
- License: gpl-3.0
- Created: 2021-06-06T17:08:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-23T00:54:21.000Z (about 1 year ago)
- Last Synced: 2024-07-11T10:47:35.550Z (3 months ago)
- Language: Java
- Size: 232 KB
- Stars: 36
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - RHSaliya/PasswordStrengthView - This is an android library to represent password strength. (Java)
README
# PasswordStrengthView
This is my first shot at creating a library in the Android SDK. This is an Android library to represent password strength, or you can use it to measure password strength yourself.# Preview
The images below show how you can adjust the view to achieve different shapes.
# How to use?
Add maven to your project gradle file
```java
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```Add dependency in your app gradle file.
```java
implementation 'com.github.RHSaliya:PasswordStrengthView:1.5'
```Add view on your layout
```xml```
Attatch EditText directly
```java
passwordSV.attachEditText(passwordET);
```
or use update method```java
passwordSV.update(String password);
```To just calculate strength
```java
Calculator calculator = new Calculator();
calculator.initScores(10,20,30,40);
calculator.calculate("Password",Calculator.INCREMENTAL);
```