简体   繁体   English

将密码保存到黑莓内存的最佳方法

[英]Best way of saving password into blackberry memory

I'm developing an application for blackberry 4.6.1. 我正在为黑莓4.6.1开发一个应用程序。 I need to store user's password (typical feature that allows you save your password so you don't need to type it again). 我需要存储用户密码(允许您保存密码的典型功能,因此您无需再次输入密码)。 I was thinking of store it in a file into the device but I don't know if it's a good idea because anyone who can connect the device to the PC could get this file. 我想将它存储在设备的文件中,但我不知道这是不是一个好主意,因为任何可以将设备连接到PC的人都可以获得此文件。

Of course the content of this will be encrypted but I still think that is not safe. 当然,这个内容将被加密,但我仍然认为这不安全。 As a far as I know, iOS define or setup a piece of hard-disk for each application so user cannot access to this, making storage safer, but I don't know if Blackberry have something similar. 据我所知,iOS为每个应用程序定义或设置一块硬盘,因此用户无法访问它,使存储更安全,但我不知道Blackberry是否有类似的东西。

Any idea? 任何想法?

Thanks, 谢谢,

A much better option is the PersitentStore, which by itself may be enough. 一个更好的选择是PersitentStore,它本身就足够了。 The password could still be extracted from the device, but it would be somewhat more difficult. 密码仍然可以从设备中提取,但有点困难。 If this is still a problem you can take advantage of access controls. 如果这仍然是一个问题,您可以利用访问控制。 See this developers' guide . 请参阅此开发人员指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM