当前位置:网站首页>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
边栏推荐
- Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
- Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
- tongweb设置gzip
- Why don't you recommend using products like mongodb to replace time series databases?
- uni-app---uni.navigateTo跳转传参使用
- On July 2, I invite you to TD Hero online press conference
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries
- Tutorial on building a framework for middle office business system
- Evolution of Baidu intelligent applet patrol scheduling scheme
猜你喜欢

The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?

百度智能小程序巡檢調度方案演進之路

H.265编码原理入门

Figure neural network + comparative learning, where to go next?

一文读懂TDengine的窗口查询功能

Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process

Tdengine can read and write through dataX, a data synchronization tool

Why do offline stores need cashier software?

What should we pay attention to when entering the community e-commerce business?
![[reading notes] Figure comparative learning gnn+cl](/img/44/2e13d63ef654663852cbccb342b838.png)
[reading notes] Figure comparative learning gnn+cl
随机推荐
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
LeetCode 503. 下一个更大元素 II
Why does everyone want to do e-commerce? How much do you know about the advantages of online shopping malls?
Node の MongoDB Driver
植物大战僵尸Scratch
[listening for an attribute in the array]
Community group buying exploded overnight. How should this new model of e-commerce operate?
Android SQLite database encryption
The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?
Why do offline stores need cashier software?
Alibaba's ten-year test brings you into the world of APP testing
[ManageEngine] how to make good use of the report function of OpManager
初识结构体
TDengine ×英特尔边缘洞见软件包 加速传统行业的数字化转型
7 月 2 日邀你来TD Hero 线上发布会
idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试
正式上架!TDengine 插件入驻 Grafana 官网
How to correctly evaluate video image quality
Three-level distribution is becoming more and more popular. How should businesses choose the appropriate three-level distribution system?