Surelock aims to make Fingerprint authentication easy for developers.
With Surelock, all you have to worry about is:
- Where you want to store your encrypted information
- And when you want to allow the user to use their fingerprint to encrypt that information.
And there's no need to check the Android version everywhere. That's handled for you! Elementary, my dear Watson.
dependencies {
compile 'com.smashingboxes.surelock:0.1.0'
compile 'com.android.support:appcompat-v7:LATEST_VERSION'
}
Snapshots of the development version are available in Sonatype's snapshots
repository.
- Create a new instance of Surelock in your activity's
onCreate
method
Surelock surelock = Surelock.initialize(this, new SharedPreferencesStorage(this, SHARED_PREFS_FILE_NAME), KEYSTORE_KEY_ALIAS);
The FingerprintManager APIs are only supported on Android versions 23+ However, you can add Surelock to any project and check for compatibility with Surelock's helper methods.
NOTE: Samsung S5 and Note 4 devices do not support the Android FingerprintManager APIs, and therefore Surelock cannot support these devices. Samsung S6 and newer devices which have Fingerprint Scanning hardware should work fine.
- Swirl - Animated Fingerprint Icon
- Tyler McCraw - Architecture, baseline library, initial demo samples - TylerMcCraw
- Nick Cook - Custom styling, Material Design dialog, validation, testing - nicholas-cook
See also the list of contributors who participated in this project.
Copyright 2017 Smashing Boxes
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.