当前位置:网站首页>Open the encrypted SQLite method with sqlcipher
Open the encrypted SQLite method with sqlcipher
2022-07-02 10:47:00 【Small waves-】
explain :
SQLite A very popular embedded database , It supports SQL Language , And it has good performance with very little memory . Besides, it's open source , Anyone can use it . Many open source projects ((Mozilla, PHP, Python) It's all used SQLite.
Android Integrated at run time SQLite, So each Android Applications can use SQLite database . Logarithmic familiarity SQL When the developers came , Use SQLite Pretty simple . For small applications , Using such a stand-alone file database is more compact and practical .
Encryption problem
Native sqLite Password encryption is not supported , At present, most of the commonly used database encryption methods are field encryption , Or content encryption . It is especially recommended here sqlcipher Database encryption scheme , Use consistent with native ,(sqlcipher-android Of Github Please stamp the address )
Use when encrypting windows edition sqlcipher-windows Tool handling , Set password and algorithm .
Sqlcipher encryption sqlite After database , Use android edition Sqlcipher Access databases and native sqlite It's almost the same , Just set the password when opening the database , The algorithm can be opened
Turn on encryption sqlite Example
import net.sqlcipher.database.SQLiteDatabase;

After opening the database , The following operations are the same as the native operations .
I put txt The data package is apk It's used sqlite database , Write the chapter directory location sqlite, Can quickly locate .
List of books | android Books apk download | ||
Serial number | name | download | remarks |
1 | A dream of red mansions | ||
2 | The romance of The Three Kingdoms | ||
3 | Journey to the west | ||
4 | Water margin | ||
5 | The age of hunger | Tell about the gains and losses of the Qianlong Dynasty | |
6 | Avanti story | Avanti and some national stories | |
7 | Motto card | Hundreds of proverbs | |
8 | Complete jokes | Many daily jokes | |
9 | A little novel | Dozens of famous short stories | |
10 | The romance of Yuan Dynasty | Every dynasty is the choice of history | |
11 | Love quotations | A little article about love | |
12 | Complete biography of Ji Gong | Those years, those things, those wishes | |
13 | Ming dynasty stuff | A regrettable Dynasty , The era that can see human nature best | |
14 | One man fixes the immortals - Human world | A person's metaphysical struggle history , Classic of fairy novels | |
15 | One man fixes the immortals - Spiritual world | ||
16 | One man fixes the immortals - Fairyland | ||
Reference resources :
git clone https://github.com/sqlcipher/sqlcipher.gitAbout :
qq:9611153 WeChat lgs9611153
边栏推荐
- PCL 从一个点云中提取一个子集
- Determine whether there are duplicate elements in the array
- flume 190 INSTALL
- Kustomize使用手册
- AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
- JS settimeout() and interview questions
- [visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)
- pytest框架实现前后置
- Mongodb quickly get started with some simple operations of mongodb command line
- 01-spooldir
猜你喜欢

12. Process synchronization and semaphore

Post disaster reconstruction -- Floyd thought

VSCode工具使用

MySQL数据库远程访问权限设置

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer

Introduction to MySQL 8 DBA foundation tutorial

01安装虚拟机

Operator-1初识Operator

Flutter环境配置保姆级教程,让doctor一绿到底

Retrofit's callback hell is really vulnerable in kotlin synergy mode!
随机推荐
02-taildir source
618再次霸榜的秘密何在?耐克最新财报给出答案
4.随机变量
01-spooldir
Lunix reallocates root and home space memory
JS reduce accumulator
UVM——Callback
Delivery mode design of Spartacus UI of SAP e-commerce cloud
How to get the password of cpolar?
UVM learning - build a simple UVM verification platform
SQOOP 1.4.6 INSTALL
12. Process synchronization and semaphore
PCL之滤波
Database dictionary Navicat automatic generation version
JS settimeout() and interview questions
pytest框架实现前后置
PCL 点云转深度图像
[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces
拆解美图SaaS:开着飞机换引擎
Network communication learning