All Projects → JesusM → Fingerprintmanager

JesusM / Fingerprintmanager

Licence: mit
A small library to handle Android fingerprint API.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Fingerprintmanager

Android Goldfinger
Android library to simplify Biometric authentication implementation.
Stars: ✭ 608 (+8.57%)
Mutual labels:  encryption, fingerprint, fingerprint-authentication
Rxfingerprint
Android Fingerprint authentication and encryption with RxJava
Stars: ✭ 373 (-33.39%)
Mutual labels:  encryption, fingerprint, fingerprint-authentication
Sourceafis Java
Fingerprint recognition engine for Java that takes a pair of human fingerprint images and returns their similarity score. Supports efficient 1:N search.
Stars: ✭ 136 (-75.71%)
Mutual labels:  fingerprint, fingerprint-authentication
Fingerlock
Android fingerprint authentication library
Stars: ✭ 203 (-63.75%)
Mutual labels:  fingerprint, fingerprint-authentication
Cordova Plugin Fingerprint Aio
👆 📱 Cordova Plugin for fingerprint sensors (and FaceID) with Android and iOS support
Stars: ✭ 236 (-57.86%)
Mutual labels:  fingerprint, fingerprint-authentication
Biometricauthentication
Use Apple FaceID or TouchID authentication in your app using BiometricAuthentication.
Stars: ✭ 746 (+33.21%)
Mutual labels:  fingerprint, fingerprint-authentication
Zklibrary
ZKLibrary is PHP library for reading and writing data to attendance device using UDP protocol. This library useful to comunicate between web server and attendance device directly without addition program. This library is implemented in the form of class. So that you can create an object and use it functions.
Stars: ✭ 126 (-77.5%)
Mutual labels:  fingerprint, fingerprint-authentication
React Native Fingerprint Identify
Awesome Fingerprint Identify for react-native (android only)
Stars: ✭ 81 (-85.54%)
Mutual labels:  fingerprint, fingerprint-authentication
SSBiometricsAuthentication
Biometric factors allow for secure authentication on the Android platform.
Stars: ✭ 87 (-84.46%)
Mutual labels:  fingerprint, fingerprint-authentication
sourceafis-net
Fingerprint recognition engine for .NET that takes a pair of human fingerprint images and returns their similarity score. Supports efficient 1:N search.
Stars: ✭ 43 (-92.32%)
Mutual labels:  fingerprint, fingerprint-authentication
fingerprint-gui
Use fingerprint readers with a Linux desktop environment
Stars: ✭ 47 (-91.61%)
Mutual labels:  fingerprint, fingerprint-authentication
Soter
A secure and quick biometric authentication standard and platform in Android held by Tencent.
Stars: ✭ 1,777 (+217.32%)
Mutual labels:  fingerprint, fingerprint-authentication
Aegis
A free, secure and open source app for Android to manage your 2-step verification tokens.
Stars: ✭ 2,692 (+380.71%)
Mutual labels:  encryption, fingerprint
Fingerprintauthhelper
A small library that allows You to easily manage fingererprint authentication inside your Activity or Fragment on devices with fingerprint scanner and Android M and higher. Min sdk 14
Stars: ✭ 444 (-20.71%)
Mutual labels:  fingerprint, fingerprint-authentication
Reprint
A unified fingerprint library for android.
Stars: ✭ 467 (-16.61%)
Mutual labels:  fingerprint, fingerprint-authentication
Anti Webspider
Web 端反爬技术方案
Stars: ✭ 486 (-13.21%)
Mutual labels:  encryption
Operative Framework
operative framework is a OSINT investigation framework, you can interact with multiple targets, execute multiple modules, create links with target, export rapport to PDF file, add note to target or results, interact with RESTFul API, write your own modules.
Stars: ✭ 511 (-8.75%)
Mutual labels:  fingerprint
Secure Ls
🔒 Secure localStorage data with high level of encryption and data compression
Stars: ✭ 486 (-13.21%)
Mutual labels:  encryption
Jose
🔐 JSON Object Signing and Encryption Framework (JWT, JWS, JWE, JWA, JWK, JWKSet and more)
Stars: ✭ 479 (-14.46%)
Mutual labels:  encryption
Enchive
Encrypted personal archives
Stars: ✭ 527 (-5.89%)
Mutual labels:  encryption

Android Arsenal

BuddyBuild

KFingerprintManager

A small library to handle Android fingerprint APIs.

This library offers an easy way to handle authorisation and encryption tasks using Android Fingerprint APIs. It's based on Android fingerprint dialog sample made by Google: https://github.com/googlesamples/android-FingerprintDialog.

Use

This library can be used to provide basic authentication through fingerprint API, using manual password as backup option. It also allows you to encrypt messages using fingerprint APIs. This library provides a sample to show how it can be used.

Basic use:

You import via gradle from https://jitpack.io adding this to your root build.gradle file:

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

and then adding the library as dependency:

dependencies {
  compile 'com.github.JesusM:FingerprintManager:{latest_version}'
}

(you can see which is the {latest_version} value from releases tab)

Create the fingerprint manager.

fingerPrintManager = KFingerprintManager(context, key);

key is the name for the symmetric key that is created in the Android Key Store. KFingerprintManager.InitialisationCallback contains a set of method that are called whether the fingerprint is ready to be used or when there is any error (like no fingerprint has been enrolled yet, or if there has been a problem initialising it).

Once the library is ready to be used, it provides two features: authentication and encryption.

Authentication

Authentication provides the simplest way to authenticate a user. Once it uses its fingerprint scanner, you'll obtain enough information to allow any operation that requires a user authentication. The library API is pretty simple, just call startAuthentication method passing to it a callback that will let you know the result of the operation. If the authentication went ok, you'll obtain a CryptoObject object that will let you use for authentication operations (see encryption to see what you can do with that data)

Logic to authenticate using fingerprint:

  fingerPrintManager.authenticate(object : KFingerprintManager.AuthenticationCallback {
      override fun onAuthenticationFailedWithHelp(help: String?) {
          // Logic when decryption failed with a message
      }

      override fun onAuthenticationSuccess() {
          // Logic when authentication has been successful
      }

      override fun onSuccessWithManualPassword(password: String) {
          // Logic when authentication has been successful writting password manually
      }

      override fun onFingerprintNotRecognized() {
          // Logic when fingerprint was not recognized
      }

      override fun onFingerprintNotAvailable() {
          // Logic when fingerprint is not available
      }

      override fun onCancelled() {
          // Logic when operation is cancelled by user
      }
  }, getSupportFragmentManager());

Encryption/Decryption

Encryption/decryption operations will be only done using fingerprint APIs, so if fingerprint is not present or suitable, it will fail.

Logic to encrypt an String message using the library:

  fingerPrintManager.encrypt(messageToBeEncrypted, object : KFingerprintManager.EncryptionCallback {
      override fun onFingerprintNotRecognized() {
          // Logic when fingerprint was not recognized
      }

      override fun onAuthenticationFailedWithHelp(help: String?) {
          // Logic when decryption failed with a message
      }

      override fun onFingerprintNotAvailable() {
          // Logic when fingerprint is not available
      }

      override fun onEncryptionSuccess(messageEncrypted: String) {
          // Logic to handle the encrypted message
      }

      override fun onEncryptionFailed() {
          // Logic to handle decryption failure
      }

      override fun onCancelled() {
          // Logic when operation is cancelled by user
      }
   }, getSupportFragmentManager());

Logic to decrypt an already encrypted message:

  fingerPrintManager.decrypt(messageToDecrypt, object : KFingerprintManager.DecryptionCallback {
      override fun onDecryptionSuccess(messageDecrypted: String) {
          // Logic that handles successful decryption result
      }

      override fun onDecryptionFailed() {
          // Logic to handle decryption failure
      }

      override fun onFingerprintNotRecognized() {
          // Logic when fingerprint was not recognized
      }

      override fun onAuthenticationFailedWithHelp(help: String?) {
          // Logic when decryption failed with a message
      }

      override fun onFingerprintNotAvailable() {
          // Logic when fingerprint is not available
      }

      override fun onCancelled() {
          // Logic when operation is cancelled by user
      }
   }, getSupportFragmentManager());

Customisation:

The library allows you to customise how the visual component is displayed. In order to do that, you can follow these steps:

1.- Declare a xml them like this:

  <style name ="DialogThemeLight" parent="Theme.AppCompat.Light.Dialog.MinWidth">
      <item name="colorAccent">@color/dialog_light_theme_accent</item>
      <item name="android:colorAccent">@color/dialog_light_theme_accent</item>
      <item name="android:background">@color/dialog_light_theme_background</item>
      <item name="android:textColorPrimary">@color/dialog_light_theme_text_color_primary</item>
      <item name="android:textColorSecondary">@color/dialog_light_theme_text_color_secondary</item>
  </style>

2.- Once you have the theme, the library provides a method to set it:

fingerPrintManager.setAuthenticationStyle(theme);

In the screenshots section you can see some samples of the customisations.

Screenshots:

Authentication using fingerprint and manual password using a light theme.



Same screens but this time using a dark theme.

Resources

License

MIT License

Copyright 2016 The Android Open Source Project, Inc.

Copyright (c) 2017 Jesús

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].