Android 数据库加密 [英] Android database encryption

查看:32
本文介绍了Android 数据库加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android 使用 SQLite 数据库来存储数据,我需要对 SQLite 数据库进行加密,这怎么做?我了解应用程序数据是私有的.但是我需要显式加密我的应用程序正在使用的 SQLite 数据库.

Android uses SQLite database to store data, I need to encrypt the SQLite database, how can this be done? I understand that application data is private. However I need to explictly encrypt the SQLite database that my app is using.

推荐答案

SQLCipher 是一个 SQLite 扩展提供透明的 256 位 AES 数据库文件加密.

SQLCipher is an SQLite extension that provides transparent 256-bit AES encryption of database files.

早期的 sqlcipher 是用于 SQLite 的开源完整数据库加密,不适用于 android.但现在它可以作为 android 平台的 alpha 版本使用.开发人员已更新标准 Android 应用程序Notepadbot"以使用 SQLCipher.

Earlier sqlcipher which is Open Source Full Database Encryption for SQLite was not available for android. But now it's available as alpha release for android platform. Developers have updated the standard android application 'Notepadbot' to use SQLCipher.

所以这绝对是目前最好和最简单的选择.

So this is definitely the best and simplest option as of now.

这篇关于Android 数据库加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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