On 9/25/18, Nathan Wagner <nw+sql...@hydaspes.if.org> 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
    https://www.sqlite.org/src/file/ext/misc/shathree.c

The ".sha3sum" command in the command-line shell[1] uses shathree.c.
That hasher does include a length on both text and blob fields.  See
the description at

    https://www.sqlite.org/src/artifact/9e960ba5048?ln=552-575

[1] https://www.sqlite.org/cli.html

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to