*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Then once you have a file with the checksums with two columns, the first being the checksum, the second being the file name, someone else receiving the files in question plus the checksum file can verify it.
Code:
sha512sum -c checksums.sha512
The checksums are intended to guarantee integrity. Often for further guarantees of authenticity, the checksums are usually signed with OpenPGP. The utility gnupg, version 1.x can do that.
Last edited by Turbocapitalist; 05-26-2017 at 10:05 AM.
Reason: simplified
It looks like you missed a very important point: check in this case means you check your file against an external information, which is called checksum (and actually is another file)
Usually you download a file and a checksum too and you can check if the checksum of the given file is identical to the checksum downloaded. (if yes we assume the downloaded file is ok, if not we assume the download was unsuccessful.
wow, wasnt expecting this, im getting all different checksum values
i think i will extract the tar and cross reference it with the source directory ie do on both
count number of files
size of directory
SHA512 (/vol/cha-work/_ARCHIVE/to_be_archived/audio/chad_r/2017-05-17/Even When I Fall - January 2017 Project.tar) = fa8a0c210f4616f27de9e66d5316bce62881baf794214ebecbf4a6fd576e09b274b278f0bef278315e12159083073975f02e 5f03aff18682e5273722287df799
You're sending different data to sha512. In the first line, you send only the file itself to sha512 and then make an SHA512 hash of that hash. In the second line, you are providing a complete tarball to it.
Last edited by Turbocapitalist; 05-26-2017 at 08:17 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.