![]() ![]() ![]() This will return something like the following: Openssl sha256 ~/Documents/"Data Integrity Matters.pdf" To verify the sha256 hash value of a file named “Data Integrity Matters.pdf” located in the User Documents folder: You can also check and verify sha256 hash using the openssl command.įrom Terminal.app, use the following command: Start Terminal and then use the following command, and replace / path / to / file with the file path as needed:įor example, to check the sha256 hash of a file named “TopSecret.tgz” in the user downloads folder, you can use the following:Ģ3bd4728d59aa19260aaeec757b4f76eca4baebaf33a94f120086c06e7bc80ef ~/Downloads/TopSecret.tgz The shasum command is available on all modern Macs and can be used to check sha256 hash. There are a number of types of hashes and checksums, but what we are going to cover here is sha256. For example, if the checksum for the file matches the checksum posted by where you received the file, you can be sure that the file is identical. We’ll cover two different command-line tools to verify a sha256 checksum on a Mac, both of which come pre-installed with all modern versions of MacOS.įor those who are unfamiliar, a checksum is basically a string of letters and numbers that can be used to determine file integrity, such as whether an error occurred during transfer, or whether a file was tampered with. Need to check the sha256 hash of a file? You can easily check the SHA 256 checksum of any macOS file from the command line. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |