惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - stone8386

微信调试工具,内网穿透工具,Localtunnel 使用 BackgroundService 创建 Windows 服务 centos8在更新yum源时提示失败 错误:为 repo ‘AppStream’下载元数据失败 c# 连接 sql server 数据库时报错,证书链是由不受信任的颁发机构颁发的。 锐浪报表 手工注册发布软件 - C/S报表开发 免COM DLL注册发布(绿色发布) - C/S报表开发 如何修复identity 2的默认登录路由中的错误 docker 启动 redis集群 android studio 生成 keystore 命令 identityserver4 对接钉钉 centos yum install 找不到软件包 docker 挂载文件出错 在linux 或docker中使用 system.drawing.common docker 发布到私有docker registry docker 不能访问外网 centos 网卡状态 ngxin 配置ssl Install Docker Compose docker registry
net 6 使用 加密sqlite
stone8386 · 2023-02-26 · via 博客园 - stone8386

用加密sqlite 使用了 sqlciphone

1、在nuget中安装 (1)microsoft.entityframeworkcore.sqlite.core  (2)sqlitepclraw.bundle_e_sqlcipher

2、设置连接字符串 在appsettings.json 里 

"ConnectionStrings": {
  "SqliteConnection": "Filename=t1.db"
}

3、在program.cs里

var sqliteBaseConnectionString = builder.Configuration.GetConnectionString("SqliteConnection") ?? throw new InvalidOperationException("Connection string 'SqliteConnection' not found.");
var sqliteConnectionString = new SqliteConnectionStringBuilder(sqliteBaseConnectionString)
{
  Mode = SqliteOpenMode.ReadWriteCreate,
  Password = "123456",

  //DataSource = "resource/t1.db",
}.ToString();

builder.Services.AddDbContext<SqliteDbContext>(options =>
options.UseSqlite(sqliteConnectionString));

---------------------------------------------------------------------------------------------------------------

下载:https://sqlitestudio.pl/

使用SQLiteStudio(3.4.3) 连接加密数据库

1、选择数据库类型  SQLCipher

2、文件:先择相应的数据库文件

3、密码:填入123456 (上面程序设置的密码)

4、加密算法配置(SQCipher 4):

PRAGMA kdf_iter = '256000';

PRAGMA cipher_page_size = 4096;

PRAGMA cipher_hmac_algorithm = HMAC_SHA512;

PRAGMA cipher_default_kdf_algorithm = PBKDF2_HMAC_SHA512;

---------------------------------------------------------------------------------------------------

下载 DB Browser for SQLite: http://www.sqlitebrowser.org/dl/

使用 DB Browser (SQLCipher) 查看加密数据库

1、输入密码

2、SQLCipher 4 默认 

--------------------------------------------------------

https://learn.microsoft.com/en-us/dotnet/standard/data/sqlite/encryption?tabs=visual-studio

https://libaineu2004.blog.csdn.net/article/details/81128360?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-81128360-blog-123866986.pc_relevant_recovery_v2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-81128360-blog-123866986.pc_relevant_recovery_v2&utm_relevant_index=6

https://cloud.tencent.com/developer/ask/sof/1554268

https://blog.csdn.net/Backspace110/article/details/106952191