yx30
V2EX  ›  Android

Android 本地数据加密

  •  
  •   yx30 · Oct 28, 2015 · 15689 views
    This topic created in 3874 days ago, the information mentioned may be changed or developed.
    比如数据库的数据和 SharePreference 的要怎么加密才不会轻易被破解查看
    10 replies    2015-10-29 14:02:37 +08:00
    sangmingming
        1
    sangmingming  
       Oct 28, 2015   ❤️ 1
    使用 des 或者 aes 加密后再存储。
    数据库字段名称混淆,增加阅读难度。

    或者使用第三方的数据库加密工具。
    ThisDay
        2
    ThisDay  
       Oct 28, 2015
    5.0 还是 5.1 不是默认就数据加密了?
    yx30
        3
    yx30  
    OP
       Oct 28, 2015
    @leeyuzhe 还是要兼容低版本
    honeycomb
        4
    honeycomb  
       Oct 28, 2015
    @leeyuzhe
    这个加密等同与 iOS 的用户数据加密,用户一旦打开锁屏,便会解密
    这从 6.0 开始才是强制性的要求(见 CDD)

    LZ 问的是对于某一个具体应用开发的时候,如何保护配置文件
    ThisDay
        5
    ThisDay  
       Oct 28, 2015
    @honeycomb 对的,是我没理解楼主意思。 6.0 解锁后也解密了吧
    onlyxuyang
        6
    onlyxuyang  
       Oct 28, 2015 via Android   ❤️ 1
    ……麻烦 开 data 区全盘加密吧少年
    greenskinmonster
        7
    greenskinmonster  
       Oct 28, 2015   ❤️ 1
    https://github.com/facebook/conceal

    Conceal provides a set of easy to use APIs for performing fast encryption and authentication of data. Apps can use Conceal to encrypt data and large files stored in public locations, for example SD cards.

    Facebook 的一个开源项目
    silverzhao
        8
    silverzhao  
       Oct 28, 2015   ❤️ 1
    SQLCipher ,貌似微信的本地数据加密就是用的它:

    https://www.zetetic.net/sqlcipher/
    yx30
        9
    yx30  
    OP
       Oct 29, 2015
    @greenskinmonster
    不会要用 Buck 构建吧....
    greenskinmonster
        10
    greenskinmonster  
       Oct 29, 2015   ❤️ 1
    @yx30 有编译好的吧,不过个头不小。
    看 GitHub 项目页面
    Use prebuilt binaries: http://facebook.github.io/conceal/documentation/.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   927 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 22:49 · PVG 06:49 · LAX 15:49 · JFK 18:49
    ♥ Do have faith in what you're doing.