Hello I’m trying to get the MD5sum of a jpg file using it2be_cryptor.MD5. When I use the plugin I get the MD5 back from the plugin ok. But when I use a windows program or use it with my web services site the MD5 is different. Am I doing it wrong? How would you get the MD5 of a jpg on the harddrive?
I’m trying this and a bunch of other ways but none of them work:
var vImage = plugins.images.getImage(‘C:\cownew.jpg’);//loads the image
var vBytes = vImage.getData();//gets the image bytes
var vMdfive = plugins.it2be_cryptor.MD5(vBytes );
I tried this too but its the same: var rawData = plugins.file.readFile(‘C:\cownew.jpg’);
This gives me this result:
af3b44cc88275ca37e8bf7ab54a4486b
The windows app gives the same exact one as below: 2997f5f1910fc7cba4714f18f9d606f6.
My web services site gives the following:
result wrong format (ByteCount given: 39791, received: 39791. MD5Sum given: af3b44cc88275ca37e8bf7ab54a4486b, actual: 2997f5f1910fc7cba4714f18f9d606f6.)
The windows program I use is called md5sums-1.2.
Thanks,
Steve