当前位置:网站首页>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.git
About :
qq:9611153 WeChat lgs9611153
边栏推荐
- Stm32 et développement de moteurs (système supérieur)
- Pywin32 opens the specified window
- 1287_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS
- 使用sqlcipher打开加密的sqlite方法
- Win11 arm系统配置.net core环境变量
- 13.信号量临界区保护
- pytest学习--base
- MYSQL环境配置
- 1287_FreeRTOS中prvTaskIsTaskSuspended()接口实现分析
- What are the popular frameworks for swoole in 2022?
猜你喜欢
Session cookies and tokens
Stm32 et développement de moteurs (système supérieur)
Mongodb quickly get started with some simple operations of mongodb command line
[Fantasy 4] the transformation from U3D to UE4
JS reduce accumulator
Mysql database remote access permission settings
[unity3d] nested use layout group to make scroll view with dynamic sub object height
Considerations for Apache deploying static web page projects
Introduction and Principle notes of UE4 material
Postman -- use
随机推荐
JS reduce accumulator
The nanny level tutorial of flutter environment configuration makes the doctor green to the end
1287_FreeRTOS中prvTaskIsTaskSuspended()接口实现分析
2021-09-12
UVM - usage of common TLM port
[Fantasy 4] the transformation from U3D to UE4
12. Process synchronization and semaphore
session-cookie与token
1287_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS
《MySQL 8 DBA基础教程》简介
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Network communication learning
js promise.all
4.随机变量
MPLS experiment
[pit avoidance guide] pit encountered by unity3d project when accessing Tencent bugly tool
Importing tables from sqoop
Windows环境MySQL8忘记密码文件解决方案
PCL之K-d树与八叉树
Considerations for Apache deploying static web page projects