in reply to Hash compare or checksum

Another way-

perl -MJSON::XS -MDigest::MD5=md5_hex -le 'print md5_hex(encode_json({my => "hash"}))'

JSON::XS is comparable in speed to Storable and will not cause binary/platform/version problems.