All Projects → OmarAflak → Fingerprint

OmarAflak / Fingerprint

Licence: MIT license
Android library that simplifies the process of fingerprint authentications.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Fingerprint

Android Goldfinger
Android library to simplify Biometric authentication implementation.
Stars: ✭ 608 (+794.12%)
Mutual labels:  cipher, fingerprint
Encrypt
🔒 A set of high-level APIs over PointyCastle for two-way cryptography.
Stars: ✭ 199 (+192.65%)
Mutual labels:  cipher
Enigma
Enigma cipher tool
Stars: ✭ 13 (-80.88%)
Mutual labels:  cipher
Enigmakit
Enigma encryption in Swift
Stars: ✭ 108 (+58.82%)
Mutual labels:  cipher
Anytool android
🔥 Android various tool classes, make your development faster and easier. Android各种工具类,让你的开发更快更简单
Stars: ✭ 44 (-35.29%)
Mutual labels:  cipher
Simon Speck
The SIMON and SPECK families of lightweight block ciphers. #nsacyber
Stars: ✭ 146 (+114.71%)
Mutual labels:  cipher
Siv Mode
RFC 5297 SIV mode of operation in Java
Stars: ✭ 22 (-67.65%)
Mutual labels:  cipher
react-native-speech-bubble
💬 A speech bubble dialog component for React Native.
Stars: ✭ 50 (-26.47%)
Mutual labels:  dialog
Sboot stm32
Secure USB DFU1.1 bootloader for STM32
Stars: ✭ 181 (+166.18%)
Mutual labels:  cipher
Javascript
A repository for All algorithms implemented in Javascript (for educational purposes only)
Stars: ✭ 16,117 (+23601.47%)
Mutual labels:  cipher
Cipher.so
A simple way to encrypt your secure data like passwords into a native .so library.
Stars: ✭ 1,308 (+1823.53%)
Mutual labels:  cipher
Cape
String encryption for Arduino, limited microcontrollers and other embedded systems.
Stars: ✭ 58 (-14.71%)
Mutual labels:  cipher
Crypto Async
Fast, reliable cipher, hash and hmac methods executed in Node's threadpool for multi-core throughput.
Stars: ✭ 161 (+136.76%)
Mutual labels:  cipher
Cryptii
Web app and framework offering modular conversion, encoding and encryption
Stars: ✭ 971 (+1327.94%)
Mutual labels:  cipher
Lua Openssl
Openssl binding for Lua
Stars: ✭ 206 (+202.94%)
Mutual labels:  cipher
Simon Speck C
example C language implementation of SIMON and SPECK lightweight block ciphers.
Stars: ✭ 9 (-86.76%)
Mutual labels:  cipher
Cryptoswift
CryptoSwift is a growing collection of standard and secure cryptographic algorithms implemented in Swift
Stars: ✭ 8,846 (+12908.82%)
Mutual labels:  cipher
Chinese Cipher Of Sm2 Sm3 Sm4
This is an android-project about sending messages after encryption or getting cipher text from message database of mobile phone.U could also get the original points through your secret key
Stars: ✭ 109 (+60.29%)
Mutual labels:  cipher
mbedcrypto
a portable, small, easy to use and fast c++14 library for cryptography.
Stars: ✭ 38 (-44.12%)
Mutual labels:  cipher
KotlinDialogs
对话框工具,Dialog集合工具,引用了V7包的AlertDialog 使用的 kotlin_version = '1.3.11'写的
Stars: ✭ 16 (-76.47%)
Mutual labels:  dialog

Fingerprint Download

Fingerprint is an Android library that simplifies the process of fingerprint authentications. The library provides a fingerprint view that you can use like regulars xml views. Furthermore, it can display dialogs to perform fingerprint authentication very easily.

In both cases the Fingerprint library implements in a simple way the use of a CryptoObject.

Gradle Dependency

implementation 'me.aflak.libraries:fingerprint:2.5.3'

Fingerprint View

The library provides a Fingerprint object which is a view that you can display the way you want and use for authentications. Customizations are at the end of the README.

<me.aflak.libraries.view.Fingerprint
    android:id="@+id/fingerprint"
    android:layout_width="200dp"
    android:layout_height="200dp"/>

Without CryptoObject

You only want to check if the user's fingerprint is enrolled in the phone.

Fingerprint fingerprint = findViewById(R.id.fingerprint);
fingerprint.callback(new FingerprintCallback(...));
fingerprint.authenticate();

EXAMPLE

With CryptoObject

Check if the user's fingerprint is enrolled in the phone and detect if a new fingerprint was added since last time authentication was used.

Fingerprint fingerprint = findViewById(R.id.fingerprint);
fingerprint.callback(new FingerprintDialogSecureCallback(...), "Key");
fingerprint.authenticate();

EXAMPLE

Fingerprint Dialog

Without CryptoObject

You only want to check if the user's fingerprint is enrolled in the phone.

FingerprintDialog.initialize(this)
    .title(R.string.title)
    .message(R.string.message)
    .callback(new FingerprintDialogCallback(...))
    .show();

EXAMPLE

With CryptoObject

Check if the user's fingerprint is enrolled in the phone and detect if a new fingerprint was added since last time authentication was used.

FingerprintDialog.initialize(this)
    .title(R.string.title)
    .message(R.string.message)
    .callback(new FingerprintDialogSecureCallback(...), "Key")
    .show();

EXAMPLE

Secure a CryptoObject via authentication

CryptoObject can be used to perform cryptographic operations on Android. You can set the CryptoObject to be valid only if the user has authenticated via fingerprint before. You have to use setUserAuthenticationRequired(true) when creating the CryptoObject.

FingerprintManager.CryptoObject cryptoObject;
// cryptoObject = ...

if(FingerprintDialog.isAvailable(this)) {
    FingerprintDialog.initialize(this)
        .title(R.string.fingerprint_title)
        .message(R.string.fingerprint_message)
        .callback(new FingerprintCallback(...))
        .cryptoObject(cryptoObject)
        .show();
}

Customization

You can customize the fingerprint view directly from the xml.

<me.aflak.libraries.view.Fingerprint
    xmlns:fingerprint="http://schemas.android.com/apk/res-auto"
    fingerprint:circleScanningColor="@android:color/black"
    fingerprint:fingerprintScanningColor="@color/colorAccent"
    android:id="@+id/fingerprint"
    android:layout_width="200dp"
    android:layout_height="200dp" />

Several functions are also available to customize your dialog.

FingerprintDialog.initialize(this)
    .title(R.string.fingerprint_title)
    .message(R.string.fingerprint_message)
    .enterAnimation(DialogAnimation.Enter.RIGHT)
    .exitAnimation(DialogAnimation.Exit.RIGHT)
    .circleScanningColor(R.color.colorAccent)
    .callback(this)
    .show();

Rendering

License

MIT License

Copyright (c) 2017 Michel Omar Aflak

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