Skip to content

Consider using longer hashes than 128 bit #692

@bob1de

Description

@bob1de

Hi,

While working with kopia over the last days, I noticed that root and snapshot IDs are only 128 bit long, so they are the same size as md5 hashes. I suppose the same hash size is used for addressing content blocks, correct?

Given that even git, which used sha1 (160 bit) now moves to sha256 (256 bit), kopia should probably switch to a larger hash size as well. Kopia repos store an enormous amount of blocks, comparable to huge git repos, so the chance of a hash collision seems present here as well.

I don't know much about the internals of kopia's repo format, but if switching the hash size would require existing blocks to be re-hashed in order to rebuild the indexes, such a decision should probably be made as early as possible.

What do you think?

Best regards
Robert

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions