PasswordStrengthView

This is an android library to represent password strength.

Preview

Empty Ok Easy

Medium Strong VStrong

How to use?

Add maven to your project gradle file

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Add dependency in your app gradle file.

	implementation 'com.github.RHSaliya:PasswordStrengthView:1.1'

Add view on your layout

<com.rhs.psw.PasswordStrengthView
        android:id="@+id/passwordSV"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="24sp"
        app:indicatorWidth="16dp"
        app:empty_color="#ddd"/>

Attatch EditText directly

passwordSV.attachEditText(keyET);

or use update method

passwordSV.update(String password);

To just calculate strength

	Calculator calculator = new Calculator();
        calculator.initScores(10,20,30,40);
        calculator.calculate("Password",Calculator.INCREMENTAL);

GitHub

https://github.com/RHSaliya/PasswordStrengthView