Samstag, 19. Januar 2013

Calculating Checksums for Oracle Downloads


Calculating Checksums for Oracle Downloads

It took me quite a while to figure out which check sum algorithm Oracle is using on some of its download pages. E.g. on the OSB download page, we find the comment “Oracle Service Bus Size: 1.06 GB, Check Sum:1490338751”
This check sum is generated by the old unix tool cksum, which protects for accidental corruption during transport, however is not cryptographically secure. See http://en.wikipedia.org/wiki/Cksum for more details.
On Windows we can use cksum.exe which is included in win32 tools from the project win-bash (http://win-bash.sourceforge.net/).  Calculating the check sum for the OSB download on my machine yields:
D:\17Tools\shell.w32-ix86>cksum.exe D:\01Downloads\ofm_osb_generic_11.1.1.6.0_disk1_1of1.zip
1490338751 1149088683 D:\01Downloads\ofm_osb_generic_11.1.1.6.0_disk1_1of1.zip
The first number is the CRC value which matches the value from the oracle website and the second value is the size in bytes.

Keine Kommentare:

Kommentar veröffentlichen