I'd like to embed checksum information into file, that I transfer.
It's tar.gz or tar.xz file and I can only transfer one file to remote side.
How do you recommend I embed checksum information?
I want checksum of whole archive, not it's contents (I'd like to check it's integrity "before" unpacking).
I know I could pack it again in some format supporting checksums (like rar) but it's computational cost to "repack" stuff, just for adding checksum (on the other hand I don't like rar format). So preffered would be sth like gzip & gunzip etc , but for adding, checking, and removing checksum.
Any tools, ideas, scripts, workarounds?
Am I right .xz and .gz support concatentation? Maybe it's worth to use this feature to append compressed checksum on the end of file ?