iPhone键盘安全, [英] iPhone keyboard security,

查看:126
本文介绍了iPhone键盘安全,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过操作系统禁用自动文本捕获,如果您在应用程序中键入UITextField / UITextView操作系统捕获此文本(如果未在其词典中找到),它将以纯文本形式存储在dynamic-text.dat中文件在/ root / Library / Keyboard

I would like to disable auto text capture by OS, if you type in UITextField/UITextView OS capture this text ( If not found in it's dictionary ) in your application, it will be stored as plain text in dynamic-text.dat file in /root/Library/Keyboard

现在,如果您打开并阅读此文件,您可以轻松阅读您在应用程序中输入的内容。

Now if you open and read this file, you can easily read what you typed in your application.

我的要求是,我如何禁用此功能,以便在我的应用程序中,操作系统不会在文件中输入文本?

My requirement is, how can i disable this feature so that within my application, OS does not capture typed in text into this file?

您甚至可以在iPhone Simualtor上查看此信息

You can check this out even on iPhone Simualtor

推荐答案

在模拟器中,如果我有一个 UITextField 设置为Secure(自动完成设置为off虽然应该是默认值)我从未在〜 / Library / Application中看到我输入的任何文本支持/ iPhone模拟器/用户/库/键盘/ dynamic-text.dat ,虽然 UITextField 设置为自动完成确实文本最终在那里。

In the simulator, if I had a UITextField set to Secure (with autocomplete set to off though that should be the default) I never saw any text I typed there in the ~/Library/Application Support/iPhone Simulator/User/Library/Keyboard/dynamic-text.dat, though a UITextField set to autocomplete did have text end up in there.

如果我关闭之前捕获的字段上的自动更正,我看到我输入的条目不再显示在该文件中。

If I turned off autocorrection on the field that was capturing before, I saw no more entries that I typed show up in that file.

我在模拟器上和设备上都尝试了这一点 - 在设备上我运行了一个带有安全且不安全的文本字段的相同测试应用程序(我交替转向)打开和关闭autocorrection),然后使用SpyPhone检查键盘缓存。再次在文本字段被标记为安全或已关闭自动更正的所有情况下,我没有看到我键入的键盘缓存中显示的任何内容,如果我将其键入到启用了自动更正的文本字段中 - 只是为了如果该字段也被标记为安全(并且我也不确定它是否尝试自动更正),即使明确地在IB定义的文本字段中明确打开自动更正也没有记录任何内容。

I tried this both on the simulator, and also on the device - on the device I ran my same test application with a secure and unsecured text field (where I alternately turned on and off autocorrection), and then used SpyPhone to examine the keyboard cache. Again in all cases where the text field was marked as secure or had autocorrection turned off, I did not see anything I typed show up in the keyboard cache where I did if I typed it into a text field with auto-correction enabled - just to be clear even explicitly turning on autocorrection in an IB defined text field did not record anything if the field was also marked as secure (and I'm also not sure it tried to autocorrect).

现在我注意到,如果我尝试使用UITextView而不是UITextField,那么即使关闭自动更正也不会阻止文本被记录。这似乎是一种疏忽而不是设计选择。一种解决方法是使用UITextField,但这并不总是可行......我会提交一个雷达

Now I did note, that if I tried a UITextView instead of a UITextField, in that case even turning off autocorrection did not stop the text from being recorded. That seems like an oversight rather than a design choice. A workaround would be to use a UITextField, but that's not always possible... I'd file a Radar on that with Apple.

我还可以验证我使用的通用密码(在Safari或应用程序中)没有显示在SpyPhone中,所以它们不在缓存中。但几乎所有收集密码的应用程序都使用UITextField来执行此操作。

I can also verify that no common passwords I use (in Safari or applications) showed up in SpyPhone, so they are not in the cache. But pretty much any app collecting passwords uses a UITextField to do so.

这篇关于iPhone键盘安全,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆