简体   繁体   English

选择最佳解决方案来存储Android密码安全应用程序的数据

[英]Selecting the best solution to store data for an Android Password Safe app

For those which are not familiar with password safe app types its simply an app that stores passwords or other sensitive data. 对于不熟悉密码安全应用程序的用户,只需输入存储密码或其他敏感数据的应用程序即可。

I haven't been ancrypting in java yet. 我还没有在Java中进行加密。 I came up with 2 solutions after a research. 经过研究,我想出了两种解决方案。

1) Using an SQLite database and somehow encrypt that (I've read that might be problematic, cause troubles with acquiring data and might require some custom libs) 1)使用SQLite数据库并以某种方式对其进行加密(我读过这可能有问题,会导致获取数据时遇到麻烦,并且可能需要一些自定义库)

2) Using serialized objects stored into encrypted files (sounds reasonable, however acquiring data won't be that comfy as from a database) 2)使用存储在加密文件中的序列化对象(听起来很合理,但是从数据库中获取数据并不那么方便)

What is very important: I must have easy way for backing up data. 重要的是:我必须有简单的方法来备份数据。 On SD card for example. 以SD卡为例。 It would be easy if it comes to database. 如果涉及数据库,那将很容易。 Dont know about serialized encrypted objects though... 虽然不知道序列化的加密对象...

Which one you think is better? 您认为哪一个更好?

First solution is better anyway. 无论如何,第一个解决方案更好。 There must be no problems if you do it right and spent some time for researching and testing! 如果您做对了,并花了一些时间进行研究和测试,那肯定没有问题!

Can`t give you direct link, but this method was used in many of my projects. 不能给您直接链接,但是我的许多项目中都使用了这种方法。

Definitely option 1. 绝对是选项1。

You might want to consider this project (source available), it does exactly what you want using AES Encryption . 您可能要考虑这个项目 (可提供源),它确实可以使用AES加密实现您想要的。

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

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