当前位置:网站首页>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
边栏推荐
- 百度智能小程序巡檢調度方案演進之路
- From "chemist" to developer, from Oracle to tdengine, two important choices in my life
- 百度智能小程序巡检调度方案演进之路
- SQL learning alter add new field
- Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
- Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
- Unity skframework framework (24), avatar controller third person control
- Idea debugs com intellij. rt.debugger. agent. Captureagent, which makes debugging impossible
- Develop and implement movie recommendation applet based on wechat cloud
- Why don't you recommend using products like mongodb to replace time series databases?
猜你喜欢
How to improve the operation efficiency of intra city distribution
Charm of code language
Tdengine connector goes online Google Data Studio app store
The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
Deep understanding of C language pointer
Why don't you recommend using products like mongodb to replace time series databases?
Cross process communication Aidl
A keepalived high availability accident made me learn it again
Develop and implement movie recommendation applet based on wechat cloud
初识结构体
随机推荐
Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具
High performance spark_ Transformation performance
Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)
Application of data modeling based on wide table
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
Uncover the practice of Baidu intelligent testing in the field of automatic test execution
OpenGL - Model Loading
Tdengine can read and write through dataX, a data synchronization tool
Cross process communication Aidl
Solve liquibase – waiting for changelog lock Cause database deadlock
LeetCode 31. Next spread
Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
Viewpager pageradapter notifydatasetchanged invalid problem
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
Principle and performance analysis of lepton lossless compression
Thermometer based on STM32 single chip microcomputer (with face detection)
基于宽表的数据建模应用
TDengine ×英特尔边缘洞见软件包 加速传统行业的数字化转型
观测云与 TDengine 达成深度合作,优化企业上云体验