Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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.

Empty Ok Easy

Medium Strong VStrong

# 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);
```