abhayjatindoshi / PasswordStrengthBar

An android library to show the password strength using four strength bars with colours set for each.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

See the strength of your password through separated strength bars


Recommend me on LinkedIn

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:
    	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  1. Add this in your app's build.gradle
	dependencies {
	        implementation 'com.github.thenishchalraj:PasswordStrengthBar:Tag'
	}
  1. To use this in XML File, use
  <com.android.thenishchalraj.passwordstrength.PasswordStrengthBar
        android:id="@+id/passwordBarCheck"
        android:layout_width="match_parent"
        android:layout_height="4dp"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="16dp"/>
  1. 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 ❤️ by putting a ⭐ on this project ✌️

To learn how to write your own Android Library

Follow this medium link and start today.

Contributing to PasswordStrengthBar

Fork and make your changes/improvements. All pull requests are welcome.

About

An android library to show the password strength using four strength bars with colours set for each.

License:Apache License 2.0


Languages

Language:Java 56.9%Language:Kotlin 43.1%