All Projects → infinum → Android Goldfinger

infinum / Android Goldfinger

Licence: apache-2.0
Android library to simplify Biometric authentication implementation.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Goldfinger

Rxfingerprint
Android Fingerprint authentication and encryption with RxJava
Stars: ✭ 373 (-38.65%)
Mutual labels:  encryption, fingerprint, fingerprint-authentication
Fingerprintmanager
A small library to handle Android fingerprint API.
Stars: ✭ 560 (-7.89%)
Mutual labels:  encryption, fingerprint, fingerprint-authentication
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 (-95.23%)
Mutual labels:  android-development, fingerprint-authentication
SSBiometricsAuthentication
Biometric factors allow for secure authentication on the Android platform.
Stars: ✭ 87 (-85.69%)
Mutual labels:  fingerprint, fingerprint-authentication
xipher
🔒 Simple perfect xor encryption cipher 🔒
Stars: ✭ 61 (-89.97%)
Mutual labels:  encryption, cipher
Sboot stm32
Secure USB DFU1.1 bootloader for STM32
Stars: ✭ 181 (-70.23%)
Mutual labels:  encryption, cipher
Encrypt
🔒 A set of high-level APIs over PointyCastle for two-way cryptography.
Stars: ✭ 199 (-67.27%)
Mutual labels:  encryption, cipher
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.93%)
Mutual labels:  fingerprint, fingerprint-authentication
Cape
String encryption for Arduino, limited microcontrollers and other embedded systems.
Stars: ✭ 58 (-90.46%)
Mutual labels:  encryption, cipher
fingerprint-gui
Use fingerprint readers with a Linux desktop environment
Stars: ✭ 47 (-92.27%)
Mutual labels:  fingerprint, fingerprint-authentication
Eth Crypto
Cryptographic javascript-functions for ethereum and tutorials to use them with web3js and solidity
Stars: ✭ 420 (-30.92%)
Mutual labels:  encryption, cipher
Aegis
A free, secure and open source app for Android to manage your 2-step verification tokens.
Stars: ✭ 2,692 (+342.76%)
Mutual labels:  encryption, fingerprint
Reprint
A unified fingerprint library for android.
Stars: ✭ 467 (-23.19%)
Mutual labels:  fingerprint, fingerprint-authentication
Fingerprint
Android library that simplifies the process of fingerprint authentications.
Stars: ✭ 68 (-88.82%)
Mutual labels:  cipher, fingerprint
Enigmakit
Enigma encryption in Swift
Stars: ✭ 108 (-82.24%)
Mutual labels:  encryption, cipher
shadowsocks-libev-nocrypto
libev port of shadowsocks. In this fork, encryption is optional!
Stars: ✭ 24 (-96.05%)
Mutual labels:  encryption, cipher
Enigma
Enigma cipher tool
Stars: ✭ 13 (-97.86%)
Mutual labels:  encryption, cipher
Cryptii
Web app and framework offering modular conversion, encoding and encryption
Stars: ✭ 971 (+59.7%)
Mutual labels:  encryption, cipher
AES
AES for microcontrollers (Arduino & Raspberry pi)
Stars: ✭ 116 (-80.92%)
Mutual labels:  encryption, cipher
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 (-26.97%)
Mutual labels:  fingerprint, fingerprint-authentication

Goldfinger JCenter Build Status

Important

This version is compatible with androidx.biometric. If you do not want to use androidx.biometric, feel free to use older version of Goldfinger.

Quick guide

Add dependency

implementation 'co.infinum:goldfinger:2.0.1'

Initialize

Goldfinger.Builder(context).build()

Check prerequisites

if (goldfinger.canAuthenticate()) {
  /* Authenticate */
}

Build params

PromptParams are directly linked to BiometricPrompt.PromptInfo so be sure to read which parameters are required.

Goldfinger.PromptParams params = new Goldfinger.PromptParams.Builder(activity)
  .title("Title")
  .negativeButtonText("Cancel")
  .description("Description")
  .subtitle("Subtitle")
  .build();

I also suggest looking at ValidateUtils class to understand what is allowed by the Biometric library.

Authenticate

goldfinger.authenticate(params, new Goldfinger.Callback() {
    @Override
    public void onError(@NonNull Exception e) {
        /* Critical error happened */
    }

    @Override
    public void onResult(@NonNull Goldfinger.Result result) {
        /* Result received */
    }
});

You can see all Goldfinger methods here.

Rx module

Goldfinger has separate Rx module in case you want to use reactive approach.

Add dependencies

implementation 'co.infinum:goldfinger:2.0.1'
implementation 'co.infinum:goldfinger-rx:2.0.1'

Initialize

RxGoldfinger.Builder(context).build()

Authenticate

goldfinger.authenticate(params).subscribe(new DisposableObserver<Goldfinger.Result>() {

  @Override
  public void onComplete() {
    /* Fingerprint authentication is finished */
  }

  @Override
  public void onError(Throwable e) {
    /* Critical error happened */
  }

  @Override
  public void onNext(Goldfinger.Result result) {
    /* Result received */
  }
});

You can see all RxGoldfinger methods here.

Configuration

If you don’t like default implementations, you can easily modify them using Goldfinger.Builder object.

Goldfinger.Builder(context)
  .logEnabled(true)
  .cipherFactory(factory)
  .cipherCrypter(crypter)
  .build()

Important: Both Factory and Crypter should use same object type. If MacFactory is used, be sure to also provide MacCrypter!

Factory (Cipher, Mac, Signature)

Factory class should be used to create Cipher/Mac/Signature which will be used internally when CryptoObject is created.

new CipherFactory() {
  @Nullable
  @Override
  public Cipher createEncryptionCrypter(String key) {
     /* Create Cipher for encryption */
  }
  
  @Nullable
  @Override
  public Cipher createDecryptionCrypter(String key) {
    /* Create Cipher for decryption */
  }
};

Goldfinger will default to AesCipherFactory if other implementation is not provided.

Crypter (Cipher, Mac, Signature)

Crypter class should be used to encrypt/decrypt data with Cipher/Mac/Signature which was created with Factory above.

new CipherCrypter() {
  @Nullable
  @Override
  public String encrypt(@NonNull Cipher crypter, @NonNull String value) {
    /* Encrypt data with given crypter */
  }

  @Nullable
  @Override
  public String decrypt(@NonNull Cipher crypter, @NonNull String value) {
    /* Decrypt data with given crypter */
  }
};

Goldfinger will default to Base64CipherCrypter if other implementation is not provided.

Logging

Logging is off by default. You can enable it by calling Goldfinger.Builder(context).logEnabled(true).

Known issues

  • Android Oreo does not throw KeyPermanentlyInvalidatedException - Link

Contributing

Feedback and code contributions are very much welcome. Just make a pull request with a short description of your changes. By making contributions to this project you give permission for your code to be used under the same license.

License

Copyright 2018 Infinum

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.

Credits

Maintained and sponsored by Infinum.

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].