Complexify Core

A library which makes checking the quality of user's password a breeze.

Лицензия

Лицензия

Группа

Группа

com.infinum.complexify
Идентификатор

Идентификатор

complexify-core
Последняя версия

Последняя версия

3.0.0-alpha04
Дата

Дата

Тип

Тип

pom.sha512
Описание

Описание

Complexify Core
A library which makes checking the quality of user's password a breeze.
Ссылка на сайт

Ссылка на сайт

https://github.com/infinum/android-complexify
Система контроля версий

Система контроля версий

https://github.com/infinum/android-complexify

Скачать complexify-core

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

android-complexify

Android port of Dan Palmers's jquery.complexify.js.

Download

Use Gradle:

repositories {
  jcenter()
}

dependencies {
  compile 'co.infinum:complexify-android:2.0.1'
}

Usage

EditText editText = (EditText) findViewById(R.id.editText); // your editText where you want to check password complexity as user writes

Complexify complexify = new Complexify(editText, new ComplexifyListener() {
    @Override
    public void onSuccess(boolean isValid, double complexity) {
        // isValid is true if password is valid, false otherwise
        // complexity is number form range [0.0, 100.0] where greater number represents greater complexity
    }
});

Configuration

You can override the default configuration by using setters:

setBanMode(ComplexifyBanMode banMode) // use strict (don't allow substrings of banned passwords) or loose (only ban exact matches) comparisons for banned passwords. (default: ComplexifyBanMode.STRICT)

setExecuteMode(ComplexifyExecuteMode executeMode) // defines whether execution is synchronous or asynchronous. (default: ComplexifyExecuteMode.SYNC)

setStrengthScaleFactor(int strengthScaleFactor) // scale the required password strength (higher numbers require a more complex password) (default: 1)

setMinimumChars(int minimumChars) // the minimum acceptable password length (default: 8)

setBanList(String[] banList) // array of banned passwords (default: Generated from 500 worst passwords and 370 Banned Twitter lists found <a href="http://www.skullsecurity.org/wiki/index.php/Passwords">here</a>)

License

This code is distributed under the WTFPL v2 licence.

com.infinum.complexify

Infinum

We're an independent design & development agency of 230 people, creating beautiful software for 14 years.

Версии библиотеки

Версия
3.0.0-alpha04
3.0.0-alpha03
3.0.0-alpha02
3.0.0-alpha01