当前位置:网站首页>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
边栏推荐
猜你喜欢

MySQL数据库远程访问权限设置
![[visual studio] every time you open a script of unity3d, a new vs2017 will be automatically reopened](/img/c3/aec0a9fb79cf94b3575d95530aa8e8.png)
[visual studio] every time you open a script of unity3d, a new vs2017 will be automatically reopened

快速做出原型

Flink calculates topn hot list in real time

flink 提交程序

Database dictionary Navicat automatic generation version

1287_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS

"Matching" is true love, a new attitude for young people to make friends
![[Fantasy 4] introduction and use of UMG components (under update...)](/img/33/7e3b74192b7fd73d5145f85e061d1f.png)
[Fantasy 4] introduction and use of UMG components (under update...)

Kustomize user manual
随机推荐
Pytest-- test report allure configuration
js promise. all
13. Semaphore critical zone protection
Solutions to a series of problems in sqoop job creation
[tutorial] how to make the Helpviewer help document of VisualStudio run independently
网络通信学习
PCL之滤波
Start class, data analysis, high salary training plan, elite class
Flink calculates topn hot list in real time
Rapid prototyping
shell编程01_Shell基础
VLAN experiment
[MySQL] an exception occurs when connecting to MySQL: connection must be valid and open
02-taildir source
4.随机变量
合并有序数列
使用sqlcipher打开加密的sqlite方法
1287_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS
Retrofit's callback hell is really vulnerable in kotlin synergy mode!
Determine whether there are duplicate elements in the array