当前位置:网站首页>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
边栏推荐
- 【sourceTree配置SSH及使用】
- Community group buying has triggered heated discussion. How does this model work?
- LeetCode 496. Next larger element I
- What are the advantages of the live teaching system to improve learning quickly?
- 【数组的中的某个属性的监听】
- H. 265 introduction to coding principles
- Small program startup performance optimization practice
- How to empty uploaded attachments with components encapsulated by El upload
- How to improve the operation efficiency of intra city distribution
- 一次 Keepalived 高可用的事故,让我重学了一遍它
猜你喜欢

Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)

单片机原理与接口技术(ESP8266/ESP32)机器人类草稿

Principle and performance analysis of lepton lossless compression

百度评论中台的设计与探索

Cross process communication Aidl

tongweb设置gzip

Understanding of smt32h7 series DMA and DMAMUX

On July 2, I invite you to TD Hero online press conference

Analysis on the wallet system architecture of Baidu trading platform

High performance spark_ Transformation performance
随机推荐
Idea debugs com intellij. rt.debugger. agent. Captureagent, which makes debugging impossible
百度智能小程序巡检调度方案演进之路
Tdengine connector goes online Google Data Studio app store
What should we pay attention to when entering the community e-commerce business?
[ManageEngine] how to make good use of the report function of OpManager
Design and exploration of Baidu comment Center
干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
植物大战僵尸Scratch
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
单片机原理与接口技术(ESP8266/ESP32)机器人类草稿
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
[object array A and object array B take out different elements of ID and assign them to the new array]
The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
SQL learning group by multi table grouping scenario
【对象数组a与对象数组b取出id不同元素赋值给新的数组】
揭秘百度智能测试在测试自动执行领域实践
Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具
移动端异构运算技术-GPU OpenCL编程(进阶篇)
[listening for an attribute in the array]
Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning