irods checksum

348 views
Skip to first unread message

Daniel Hanlon

unread,
Feb 22, 2016, 8:37:31 AM2/22/16
to iRODS-Chat
Dear all,

I need to check the integrity of some files that have already been copied to irods.

All data in our irods is checksummed with sha2 and I'm trying to work out exactly what encoding is given with an ils -L so that I can compare with a command line utility on another machine. I wondered whether anybody else has managed this?

Many thanks,

Daniel.

Ben Keller

unread,
Feb 22, 2016, 1:15:23 PM2/22/16
to irod-chat
The value reported by ils -L for a sha2 checksum is the base64 encoded sha256 checksum.

You should be able to replicate it on the command line with:

sha256sum ${FILENAME} | xxd -r -p | base64

Please let us know if you have any issues with this.

--
--
"iRODS: the Integrated Rule-Oriented Data-management System; A community driven, open source, data grid software solution" https://www.irods.org
 
iROD-Chat: http://groups.google.com/group/iROD-Chat

---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Hanlon

unread,
Feb 22, 2016, 2:22:03 PM2/22/16
to iRODS-Chat
Hi Ben,

Great - just what I needed. I tied various things but was missing the xxd

Many thanks,

Daniel.

John Constable

unread,
Feb 24, 2016, 4:35:54 AM2/24/16
to irod...@googlegroups.com
Could we have this added to a ‘tips and tricks’ section on the documentation, please?

Ben Keller

unread,
Feb 24, 2016, 10:22:41 AM2/24/16
to irod-chat
An issue for that is here: https://github.com/irods/irods/issues/3063
Reply all
Reply to author
Forward
0 new messages