I have one utility in VB which generates attached file(circle.14.mdn_range.properties_VB) & i have created other file(circle.14.mdn_range.properties_UTLFILE) having same contents with UTL_FILE(Oracle running on solaris). But checksum is different for both the files with same contents. Can you suggest the reason ?
CertUtil -hashfile circle.14.mdn_range.properties_VB MD5
MD5 hash of file circle.14.mdn_range.properties_VB:
1b 43 b6 a4 44 d0 4d 8a 8b 91 3e 7b d7 aa 4f 4e
CertUtil: -hashfile command completed successfully.
CertUtil -hashfile circle.14.mdn_range.properties_UTLFILE MD5
MD5 hash of file circle.14.mdn_range.properties_UTLFILE:
ae 0c 75 b8 d5 19 05 64 d5 c6 54 ec 55 bc dc e0
CertUtil: -hashfile command completed successfully.
That's not STRICTLY correct, as any hash function effectively "compresses" data down to a fixed number of bits so there have to be collisions where different data produces identical hash results.
Hash functions try to make it impossible to modify data in ways to predictably produce a hash result identical to the result from the unmodified data. (Which is why when that protective ability is cracked, that hash function gets abandoned for more secure ones. FWIW, cracks started appearing in md5 a long time ago and now it's effectively completely cracked. It's still useful for comparing data, though it's not really secure to validate it any more.)
So to be STRICTLY correct, when the hash results differ then the data differs. If the hash results are the same you need to check if the data differs.
(Yes, I've been spending a lot of time recently dealing with cryptography and hashes for a customer...)