添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hi All,

First post on these forums. I’m trying to understand the checksum calculated by Liquibase. The MD5SUM value in the DATABASECHANGELOG table clearly seems to consist of two parts:

n:hash

Where the prefix n is a number or possible a hex nibble, : must be a separator and then the actual checksum hash.

I have studied the source for Liquibase and I’ve hit a force field with CommandBuilder which I haven’t been able to break down and fully grock it’s inner mechanics. I might add that I’m not a Java developer which make things a bit challening to say the least.

When I calculate a MD5 checksum based on input in the format below as a single string it computes to something else so apparently it is not the whole truth:

filepath::id::author

Does anyone have knowledge about how this actually works and can give me any pointers in the right direction? Any idea what that prefix is?

Thanks,

I can’t really tell you how the md5sum is calculated, but the initial digit appears to the “checksum algorithm version” number. See here for more details: