Dropbox 内容哈希作为文件指纹

Dropbox content-hash as file fingerprint

我正在 Dropbox 文件夹中编译大量文件,找到任何重复项将非常有用。

我想知道将 Dropbox content_hash 属性 视为文件指纹是否安全。

Dropbox API content_hash 属性 唯一标识一个文件的数据。您可以在这里找到更多信息:

https://www.dropbox.com/developers/reference/content-hash

这意味着:

  • 具有相同 content_hash 的两个文件应该具有完全相同的 内容
  • 两个不同内容的文件应该有不同的 content_hashs.
  • 更改文件的内容将更改其 content_hash

(如果您想跨编辑和 moves/renames 跟踪文件,则应改用 id 属性。内容更改时不会更改。)