dgynfi / Dyfauthidandgesturelock
Licence: other
手势密码解锁和 TouchID (指纹) / FaceID(面容) 解锁,代码简洁高效。(Gesture passcode unlocking and TouchID (fingerprint) / FaceID (facial features) unlocking, its code is concise and efficient.) https://github.com/dgynfi/DYFAuthIDAndGestureLock
Stars: ✭ 20
Projects that are alternatives of or similar to Dyfauthidandgesturelock
Cordova Plugin Touch Id
💅 👱♂️ Forget passwords, use a fingerprint scanner!
Stars: ✭ 209 (+945%)
Mutual labels: fingerprint, touchid
Nativescript Fingerprint Auth
💅 👱♂️ Forget passwords, use a fingerprint scanner or facial recognition!
Stars: ✭ 130 (+550%)
Mutual labels: fingerprint, touchid
Cordova Plugin Fingerprint Aio
👆 📱 Cordova Plugin for fingerprint sensors (and FaceID) with Android and iOS support
Stars: ✭ 236 (+1080%)
Mutual labels: fingerprint, touchid
Biometricauthentication
Use Apple FaceID or TouchID authentication in your app using BiometricAuthentication.
Stars: ✭ 746 (+3630%)
Mutual labels: fingerprint, touchid
React Native Fingerprint Scanner
Provide Fingerprint, Touch ID, and Face ID Scanner for React Native (Compatible with both Android and iOS)
Stars: ✭ 704 (+3420%)
Mutual labels: fingerprint, touchid
Webpack Pwa Manifest
Progressive Web App Manifest Generator for Webpack, with auto icon resizing and fingerprinting support.
Stars: ✭ 447 (+2135%)
Mutual labels: fingerprint
Android Goldfinger
Android library to simplify Biometric authentication implementation.
Stars: ✭ 608 (+2940%)
Mutual labels: fingerprint
Rxfingerprint
Android Fingerprint authentication and encryption with RxJava
Stars: ✭ 373 (+1765%)
Mutual labels: fingerprint
Quasar Cordova Fingerprint
🔒👍📱 Quasar + Cordova Fingerprint Plugin
Stars: ✭ 25 (+25%)
Mutual labels: fingerprint
React Native Sensitive Info
Save sensitive data into Android's Shared Preferences with keystore encryption/iOS's Keychain for React Native
Stars: ✭ 758 (+3690%)
Mutual labels: fingerprint
Fingerprintmanager
A small library to handle Android fingerprint API.
Stars: ✭ 560 (+2700%)
Mutual labels: 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 (+2120%)
Mutual labels: fingerprint
Lock
Lock library to provide serialized execution of PHP code.
Stars: ✭ 775 (+3775%)
Mutual labels: lock
Redlock Rb
Redlock is a redis-based distributed lock implementation in Ruby
Stars: ✭ 385 (+1825%)
Mutual labels: lock
Spring Boot Klock Starter
基于redis的分布式锁组件,简单方便快捷接入项目,使项目拥有分布式锁能力
Stars: ✭ 546 (+2630%)
Mutual labels: lock
如果此项目能帮助到你,就请你给一颗星。谢谢!(If this project can help you, please give it a star. Thanks!)
DYFAuthIDAndGestureLock
手势密码解锁和 TouchID (指纹) / FaceID(面容) 解锁,代码简洁高效。(Gesture passcode unlocking and TouchID (fingerprint) / FaceID (facial features) unlocking, its code is concise and efficient.)
Group (ID:614799921)
Installation
Using CocoaPods:
pod 'DYFAuthIDAndGestureLock', '~> 1.0.2'
Or
# Install lastest version.
pod 'DYFAuthIDAndGestureLock'
Preview
Usage
- 添加Face ID隐私 (Add Privacy)
<key>NSFaceIDUsageDescription</key>
<string>验证Face ID,是否允许App访问?</string>
- 导入头文件 (Import Header)
#import "DYFAppLock.h"
- 手势密码和TouchID/FaceID设置 (Gesture Passcode and TouchID/FaceID Settings)
支持push和模态两种场景过渡 (Supporting push or modal transition)
- (IBAction)settingsAction:(id)sender {
static BOOL pushOrPresent = YES;
DYFAuthIDAndGestureLockSettingsController *vc = [[DYFAuthIDAndGestureLockSettingsController alloc] init];
if (pushOrPresent) {
[self.navigationController pushViewController:vc animated:YES];
} else {
// When presents view controller, please add navigation controller.
UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:vc];
[self presentViewController:nc animated:YES completion:NULL];
}
pushOrPresent = !pushOrPresent;
}
- 验证 (Authentication)
- (void)executeAuthentication {
BOOL isAuthIDOpen = [DYFSecurityHelper authIDOpen];
BOOL isGestureCodeOpen = [DYFSecurityHelper gestureCodeOpen];
if (!isAuthIDOpen && !isGestureCodeOpen) {
return;
}
DYFAuthenticationType type = DYFAuthenticationTypeGesture;
if (isAuthIDOpen) {
type = DYFAuthenticationTypeAuthID;
}
DYFAuthenticationView *authView = [[DYFAuthenticationView alloc] initWithFrame:[UIScreen mainScreen].bounds authenticationType:type];
authView.avatarImage = [UIImage imageNamed:@"cat49334.jpg"];
[authView show];
[authView authenticateWithCompletion:^(BOOL success) {
if (success) {
// 进行相应的操作
NSLog(@"验证成功");
}
}];
[authView loginOtherAccountWithCompletion:^{
// 进行其他账户登录操作
NSLog(@"登录其他账户");
}];
}
Code Sample
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].