- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我需要在 iOS 钥匙串(keychain)上安全地存储/检索项目。
从 Apple KeyChainServicesReference 文档 ( https://developer.apple.com/library/ios/documentation/security/Reference/keychainservices/Reference/reference.html ) 我使用 SecItemCopyMatching 调用检索钥匙串(keychain)项目。后者会弹出一个系统提示,要求根据允许使用指纹或 4 位电话密码的本地钥匙串(keychain)进行身份验证。
虽然我认为指纹验证是安全的,但正是 4 位 PIN 选项降低了我当前的安全性。所以,我的问题是:有没有办法只用指纹选项查询钥匙串(keychain)(没有密码选项,如果指纹验证失败,它就失败了,没有回退到 4 位密码)
我查看了 LocalAuthentication,虽然后者提供了我需要的确切流程,但 LA 不给我访问钥匙串(keychain)的权限,因此 LA 对我没有用
提前致谢
最佳答案
在 LAContext.h 中:
/// Fallback button title.
/// @discussion Allows fallback button title customization. A default title "Enter Password" is used when
/// this property is left nil. If set to empty string, the button will be hidden.
@property (nonatomic, copy) NSString *localizedFallbackTitle;
此代码删除按钮,用户可以使用手指或取消:
LAContext *context = [[LAContext alloc] init];
context.localizedFallbackTitle = @"";
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics ...
关于ios - 在 iOS8 中只能通过指纹验证才能访问钥匙串(keychain),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25002661/
我正在尝试创建一个程序,其中字符串的前三个字符重复给定次数,如下所示: foo('Chocolate', 3) # => 'ChoChoCho' foo('Abc', 3) # => 'AbcAbcA
我有以下字符串: std::string str = "Mode:AAA:val:101:id:A1"; 我想分离一个位于 "val:" 和 ":id" 之间的子字符串,这是我的方法: std::st
DNA 字符串可以是任意长度,包含 5 个字母(A、T、G、C、N)的任意组合。 压缩包含 5 个字母(A、T、G、C、N)的 DNA 字母串的有效方法是什么?不是考虑每个字母表 3 位,我们可以使用
是否有一种使用 levenstein 距离将一个特定字符串与第二个较长字符串中的任何区域进行匹配的好方法? 例子: str1='aaaaa' str2='bbbbbbaabaabbbb' if str
使用 OAuth 并使用以下函数使用我们称为“foo”(实际上是 OAuth token )的字符串加密 key public function encrypt( $text ) { // a
我是一名优秀的程序员,十分优秀!