All Projects → SimformSolutionsPvtLtd → SSBiometricsAuthentication

SimformSolutionsPvtLtd / SSBiometricsAuthentication

Licence: Apache-2.0 license
Biometric factors allow for secure authentication on the Android platform.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to SSBiometricsAuthentication

fingerprint-gui
Use fingerprint readers with a Linux desktop environment
Stars: ✭ 47 (-45.98%)
Mutual labels:  fingerprint, fingerprint-authentication, biometrics
Biometric-Authentication-Android
A sample implementation of AndroidX biometrics API using Kotlin. Authenticate using biometrics or PIN/Password if biometrics isn't available on device. Fully implemented in Jetpack compose using Material 3 dynamic theming and also has a separate implementation in xml with MDC 3.
Stars: ✭ 29 (-66.67%)
Mutual labels:  fingerprint-authentication, biometrics, biometrics-android
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 (-50.57%)
Mutual labels:  fingerprint, fingerprint-authentication, biometrics
Fingerprintmanager
A small library to handle Android fingerprint API.
Stars: ✭ 560 (+543.68%)
Mutual labels:  fingerprint, fingerprint-authentication
Rxfingerprint
Android Fingerprint authentication and encryption with RxJava
Stars: ✭ 373 (+328.74%)
Mutual labels:  fingerprint, fingerprint-authentication
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 (+410.34%)
Mutual labels:  fingerprint, fingerprint-authentication
R30X-Fingerprint-Sensor-Library
Arduino library for R30X series optical fingerprint scanners.
Stars: ✭ 13 (-85.06%)
Mutual labels:  fingerprint, biometric
React Native Fingerprint Identify
Awesome Fingerprint Identify for react-native (android only)
Stars: ✭ 81 (-6.9%)
Mutual labels:  fingerprint, fingerprint-authentication
Android Goldfinger
Android library to simplify Biometric authentication implementation.
Stars: ✭ 608 (+598.85%)
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 (+44.83%)
Mutual labels:  fingerprint, fingerprint-authentication
Fingerlock
Android fingerprint authentication library
Stars: ✭ 203 (+133.33%)
Mutual labels:  fingerprint, fingerprint-authentication
MinutiaeNet
Code and models for paper "Robust Minutiae Extractor: Integrating Deep Networks and Fingerprint Domain Knowledge" at International Conference on Biometrics (ICB) 2018
Stars: ✭ 93 (+6.9%)
Mutual labels:  fingerprint, biometrics
Soter
A secure and quick biometric authentication standard and platform in Android held by Tencent.
Stars: ✭ 1,777 (+1942.53%)
Mutual labels:  fingerprint, fingerprint-authentication
Cordova Plugin Fingerprint Aio
👆 📱 Cordova Plugin for fingerprint sensors (and FaceID) with Android and iOS support
Stars: ✭ 236 (+171.26%)
Mutual labels:  fingerprint, fingerprint-authentication
Reprint
A unified fingerprint library for android.
Stars: ✭ 467 (+436.78%)
Mutual labels:  fingerprint, fingerprint-authentication
Biometricauthentication
Use Apple FaceID or TouchID authentication in your app using BiometricAuthentication.
Stars: ✭ 746 (+757.47%)
Mutual labels:  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 (+56.32%)
Mutual labels:  fingerprint, fingerprint-authentication
fingerprintjs-android
Swiss army knife for identifying and fingerprinting Android devices.
Stars: ✭ 336 (+286.21%)
Mutual labels:  android-security, android-login
Fingerprint-Enhancement-Python
Using oriented gabor filters to enhance fingerprint images
Stars: ✭ 157 (+80.46%)
Mutual labels:  fingerprint, biometrics
eventhub
Open-source event organizing web application and a reference DDD solution.
Stars: ✭ 97 (+11.49%)
Mutual labels:  sample

Biometrics Authentication in Android

Android-Studio Kotlin Version API

Biometrics API

  • With the launch of Android 10 (API level 29), developers can now use the Biometric API, part of the AndroidX Biometric Library, for all their on-device user authentication needs.
  • The Android Framework and Security team has added a number of significant features to the AndroidX Biometric Library, which makes all of the biometric behavior from Android 10 available to all devices that run Android 6.0 (API level 23) or higher.
  • In addition to supporting multiple biometric authentication form factors, the API has made it much easier for developers to check whether a given device has biometric sensors. And if there are no biometric sensors present, the API allows developers to specify whether they want to use device credentials in their apps.

About this project :

  • This applications is sample for Biometrics Authentication in Android using Biometrics API
Finger Print Unlock Face Unlock

This application provides the below feature

  • Fingerprint Authentication
  • Face Authentication
  • PIN/Password/Pattern Authentication

How it works :

  1. Add the Gradle dependency to your app module
    def biometric_version=  '1.2.0-alpha04'
    implementation "androidx.biometric:biometric:$biometric_version"
  1. Check whether the device supports biometric authentication
    val biometricManager =  BiometricManager.from(context)
    if(biometricManager.canAuthenticate()  ==  BiometricManager.BIOMETRIC_SUCCESS){
	    // you can authenticate with biometrics
    }
  1. Create an instance of BiometricPrompt
    private fun instanceOfBiometricPrompt():  BiometricPrompt  {
        val executor =  ContextCompat.getmainExecutor(context)
        val callback =  object:BiometricPrompt.AuthenticationCallback()  {
            override fun onAuthenticationError(errorCode:  Int, errString:  CharSequence) {
                super.onAuthenticationError(errorCode, errString)
                showMessage("$errorCode :: $errString")
            }
            override fun onAuthenticationFailed()  {
                super.onAuthenticationFailed()
                showMessage("Authentication failed for an unknown reason")
            }
            override fun onAuthenticationSucceeded(result:  BiometricPrompt.AuthenticationResult{
                super.onAuthenticationSucceeded(result)
                showMessage("Authentication was successful")
            }
        }
        val biometricPrompt =  BiometricPrompt(context, executor, callback)
        return biometricPrompt
    }
  1. Build a PromptInfo object
    promptInfo =  BiometricPrompt.PromptInfo.Builder()
	    .setTitle("Biometric login for my app")
	    .setSubtitle("Log in using your biometric credential")
	    // Can't call setNegativeButtonText() and  // setAllowedAuthenticators(... or DEVICE_CREDENTIAL) at the same time.//
	    //.setNegativeButtonText("Use account password") //
	    .setAllowedAuthenticators(BIOMETRIC_WEAK or DEVICE_CREDENTIAL)
	    .build()
  1. Ask the user to authenticate
    biometricPrompt.authenticate(promptInfo)

For API level 21 -23 :

  • For API level 21-23, you need to check whether Screen lock is enabled or not before authentication.
    keyguardManager = getSystemService(KEYGUARD_SERVICE) as KeyguardManager
    if (keyguardManager.isKeyguardSecure) {
        //Screen lock is enabled, do authentication.
    }
  • If screen lock is not enabled than use below code to navigate user to setting screen for set up of Screen lock.
    startActivityForResult(Intent(Settings.ACTION_SECURITY_SETTINGS), REQUEST_CODE)

For more info go to Android Developers Biometric Blog

Find this example useful? ❤️

Support it by joining stargazers for this repository.

Awesome Mobile Libraries

License

Copyright 2022 Simform Solutions

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
    http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and limitations under the License.
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].