V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
drymonfidelia
V2EX  ›  数据库

sqlite 需要彻底移除已删除的敏感字段,跑一下 VACUUM 就够物理删除了吗?

  •  
  •   drymonfidelia · 3 天前 · 1195 次点击
    2 条回复    2025-05-09 10:06:57 +08:00
    liuidetmks
        1
    liuidetmks  
       3 天前
    最稳妥的方法是,你自己试一试,用 hex 编辑器看看到底有没有删除
    liuidetmks
        2
    liuidetmks  
       3 天前
    文档说了,确实是删了

    When content is deleted from an SQLite database, the content is not usually erased but rather the space used to hold the content is marked as being available for reuse. This can allow deleted content to be recovered by a hacker or by forensic analysis. Running VACUUM will clean the database of all traces of deleted content, thus preventing an adversary from recovering deleted content. Using VACUUM in this way is an alternative to setting PRAGMA secure_delete=ON.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5368 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 05:59 · PVG 13:59 · LAX 22:59 · JFK 01:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.