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

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

  •  
  •   drymonfidelia · 2025 年 5 月 8 日 · 2398 次点击
    这是一个创建于 288 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 条回复    2025-05-09 10:06:57 +08:00
    liuidetmks
        1
    liuidetmks  
       2025 年 5 月 9 日   ❤️ 1
    最稳妥的方法是,你自己试一试,用 hex 编辑器看看到底有没有删除
    liuidetmks
        2
    liuidetmks  
       2025 年 5 月 9 日
    文档说了,确实是删了

    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   ·   Solana   ·   664 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:09 · PVG 04:09 · LAX 12:09 · JFK 15:09
    ♥ Do have faith in what you're doing.