% rclone md5sum box:pycharm-community-2020.3.3.dmg -vv
2021/05/05 18:10:23 DEBUG : Using config file from "/Users/teja/.config/rclone/rclone.conf"
2021/05/05 18:10:23 DEBUG : rclone: Version "v1.55.0" starting with parameters ["rclone" "md5sum" "box:pycharm-community-2020.3.3.dmg" "-vv"]
2021/05/05 18:10:23 DEBUG : Creating backend with remote "box:pycharm-community-2020.3.3.dmg"
UNSUPPORTED pycharm-community-2020.3.3.dmg
2021/05/05 18:10:25 ERROR : pycharm-community-2020.3.3.dmg: Hash unsupported: hash type not supported
2021/05/05 18:10:25 DEBUG : 6 go routines active
2021/05/05 18:10:25 Failed to md5sum with 2 errors: last error was: Hash unsupported: hash type not supported
Context:
Hi Team,
im using rclone to copy data between google drive and box. after copying i want to verify the checksum. but drive support md5 but not box. Is there a way i can verify it
likewise box supports sha1 but not gdrive
% rclone sha1sum box:pycharm-community-2020.3.3.dmg
edf4cb81a8cf9a29be49596e456cffd3df3418cd pycharm-community-2020.3.3.dmg
% rclone sha1sum drive:/test/pycharm-community-2020.3.3.dmg
UNSUPPORTED pycharm-community-2020.3.3.dmg
2021/05/05 18:12:56 ERROR : pycharm-community-2020.3.3.dmg: Hash unsupported: hash type not supported
2021/05/05 18:12:56 Failed to sha1sum with 2 errors: last error was: Hash unsupported: hash type not supported
@nnkteja: Good post and questions! I have a couple of similar situations.
@Animosity022, @sweh: Agree, it is generally impossible to convert between hashes.
I therefore propose an enhancement to rclone check to automatically do a single- or double-sided download with local hash calculation when remote hashes are incompatible/unsupported.
As an example (think Box/OneDrive compared to GoogleDrive):
rclone check SHA1remote: MD5remote:
It would conceptually be performed by:
echo “NOTICE: SHA1remote: and MD5remote: do not have a common hash”
echo “NOTICE: Downloading MD5remote: to calculate sha1hash locally."
rclone hashsum SHA-1 SHA1remote: > srcHashes
rclone hashsum SHA-1 MD5remote: --download > dstHashes
compare srcHashes to dstHashes
This would enable a hash check without having to download from both remotes and thereby save significant time and bandwidth. It also makes it easier/quicker to check against a CryptRemote.
I haven’t checked, but I guess it will be relatively easy to implement since rclone seems to have all the building blocks needed.