Passay-Android

Additional

Language
Java
Version
1.2.0 (Mar 12, 2017)
Created
Feb 26, 2017
Updated
Apr 25, 2017 (Retired)
Owner
Marcin Orlowski (MarcinOrlowski)
Contributor
Marcin Orlowski (MarcinOrlowski)
1
Activity
Badge
Generate
Download
Source code

Announcement

What is Passay?

Passay is password policy enforcement for Java. It builds on the success of vt-password and provides a comprehensive and extensible feature set like password validation or password generation.

  • Password Validation enforces password policy by validating candidate passwords against a configurable rule set. Passay provides a comprehensive set of rules for common cases and supports extension through a simple rule interface.

  • Password generator creates new passwords using a configurable rule set. The password generator is extensible like all Passay components.

Resources

What is this Passay for Android for?

In short original Passay builds are created using Java 1.8 (this also includes dependencies like Cryptacular) so if you are building your Android project using Java 1.7 you will face compilation errors trying to add original Passay. And this is where this passay-android package comes handy - it is simply Java 1.7 friendly and comes as drop-in replacement using original org.passay package namepace.

Usage

Edit your master gradle.build file and add jitpack repository (if you use other jitpack hosted artefacts, then you have this already and this step can safely be skipped):

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

then edit your module's build.gradle and add the following as your dependency:

compile 'com.github.MarcinOrlowski:passay-android:1.2.0'

Important notes

passay-android is built from recent 1.2.0 sources, however you should be informed that:

  • If you use Java 1.8 in your project, try using upstream Passay first,
  • Due to code requirements, minSdk for this library is 19 which means KitKat or newer,
  • This package uses original org.passay namespace so it comes as drop-in replacement, but can also cause conflics (if so, raise the issue ticket please!),
  • JDBCDictionary is removed due to missing recent Java components on Android.