Re: [sqlite] dbhash collision

2018-09-25 Thread nomad
On Tue Sep 25, 2018 at 09:48:27AM -0400, Richard Hipp wrote: > On 9/25/18, Nathan Wagner wrote: > > I am working up code to calculate a hash over parts of the data in an sqlite > > database, and as a start looked at the dbhash.c code found at > > Consider instead using one of these: > >

Re: [sqlite] dbhash collision

2018-09-25 Thread Richard Hipp
On 9/25/18, Nathan Wagner wrote: > I am working up code to calculate a hash over parts of the data in an sqlite > database, and as a start looked at the dbhash.c code found at Consider instead using one of these: https://www.sqlite.org/src/file/ext/misc/sha1.c

[sqlite] dbhash collision

2018-09-25 Thread Nathan Wagner
I am working up code to calculate a hash over parts of the data in an sqlite database, and as a start looked at the dbhash.c code found at https://www.sqlite.org/src/artifact?ci=trunk=tool/dbhash.c I don't think the code as is works correctly, it is easy to construct a hash collision between two