当前位置:网站首页>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
边栏推荐
- 揭秘百度智能测试在测试自动执行领域实践
- 干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
- 【js 根据对象数组中的属性进行排序】
- Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"
- STM32 simple multi-level menu (array table lookup method)
- 解决Navicat激活、注册时候出现No All Pattern Found的问题
- Analysis on the wallet system architecture of Baidu trading platform
- [hungry dynamic table]
- Solve the problem of no all pattern found during Navicat activation and registration
- Tdengine connector goes online Google Data Studio app store
猜你喜欢

LeetCode 496. Next larger element I

90%的人都不懂的泛型,泛型的缺陷和应用场景

植物大战僵尸Scratch

TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries

正式上架!TDengine 插件入驻 Grafana 官网

Deep understanding of C language pointer

LeetCode 503. 下一个更大元素 II

OpenGL - Coordinate Systems

卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程

Project practice | excel export function
随机推荐
oracle 多行数据合并成一行数据
Tdengine connector goes online Google Data Studio app store
Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"
How to empty uploaded attachments with components encapsulated by El upload
The research trend of map based comparative learning (gnn+cl) in the top paper
An article takes you into the world of cookies, sessions, and tokens
Deep understanding of C language pointer
What should we pay attention to when developing B2C websites?
基于模板配置的数据可视化平台
How to choose the right chain management software?
Wechat applet obtains household area information
Solve liquibase – waiting for changelog lock Cause database deadlock
TDengine 离线升级流程
干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
[how to disable El table]
【对象数组a与对象数组b取出id不同元素赋值给新的数组】
从“化学家”到开发者,从甲骨文到 TDengine,我人生的两次重要抉择
About getfragmentmanager () and getchildfragmentmanager ()
Oracle combines multiple rows of data into one row of data