当前位置:网站首页>How to use sqlcipher tool to decrypt encrypted database under Windows system
How to use sqlcipher tool to decrypt encrypted database under Windows system
2022-07-05 09:47:00 【Black Mountain demon 2018】
window Under the system , How to use sqlcipher The tool decrypts the encrypted database
Demand background
At present, the database in my project is sqlcipher Encrypted , This article describes how to use sqlcipher Tools to decrypt , It has been used by testers and other developers .
Using tools
Tool download address , Extraction code 59jq
Specific decryption operations
1. Unzip the downloaded tool
2. open cmd Command the tool to bin Under the table of contents
3. Decrypt the existing encrypted database , Based on the project universal_encrypt.db For example , perform
sqlcipher-shell64.exe universal_encrypt.db Enter into sqlite in
4. Decrypt the database , Perform the following four operations
1.PRAGMA key = '123456';
2.ATTACH DATABASE 'plaintext.db' AS plaintext KEY '';
3.SELECT sqlcipher_export('plaintext');
4.DETACH DATABASE plaintext
5. finished decrypting , This plaintext.db Decrypt the database
Other uses
1. Create database
1.sqlcipher-shell64.exe encrypted .db
2.PRAGMA key = 'password';
3.create table encrypted (id integer, name text);
4. .schema
CREATE TABLE encrypted (id integer, name text);
2. Encrypt the existing database
1.sqlcipher-shell64.exe universal.db
2.ATTACH DATABASE 'encrypted.db' AS encrypted KEY 'password';
3.SELECT sqlcipher_export('encrypted');
4.DETACH DATABASE encrypted;
3. Change Password
1.sqlite> PRAGMA rekey = ‘newPassword’;
4. Open encrypted database
1.sqlcipher-shell64.exe encrypted .db
2.PRAGMA key = ‘password’;
3. .schema
Reference article :
https://blog.csdn.net/wengpanfeng/article/details/78406172
边栏推荐
- The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
- 初识结构体
- Unity skframework framework (24), avatar controller third person control
- LeetCode 31. 下一个排列
- 【对象数组的排序】
- Data visualization platform based on template configuration
- Deep understanding of C language pointer
- Charm of code language
- 解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
- 【饿了么动态表格】
猜你喜欢
LeetCode 496. Next larger element I
How do enterprises choose the appropriate three-level distribution system?
项目实战 | Excel导出功能
Unity skframework framework (XXII), runtime console runtime debugging tool
Charm of code language
mysql安装配置以及创建数据库和表
Android privacy sandbox developer preview 3: privacy, security and personalized experience
LeetCode 31. Next spread
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
小程序启动性能优化实践
随机推荐
How do enterprises choose the appropriate three-level distribution system?
使用el-upload封装得组件怎么清空已上传附件
An article takes you into the world of cookies, sessions, and tokens
Principle and performance analysis of lepton lossless compression
初识结构体
Go 语言使用 MySQL 的常见故障分析和应对方法
Are databases more popular as they get older?
Community group buying has triggered heated discussion. How does this model work?
How to implement complex SQL such as distributed database sub query and join?
观测云与 TDengine 达成深度合作,优化企业上云体验
Unity skframework framework (XXII), runtime console runtime debugging tool
TDengine 连接器上线 Google Data Studio 应用商店
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
OpenGL - Lighting
[two objects merged into one object]
TDengine 离线升级流程
How to choose the right chain management software?
C language - input array two-dimensional array a from the keyboard, and put 3 in a × 5. The elements in the third column of the matrix are moved to the left to the 0 column, and the element rows in ea
Tdengine offline upgrade process
A keepalived high availability accident made me learn it again