Calculating Checksum

Calculating Checksum

PHP has a built-in function to calculate the checksum for a file. You can use it directly by specifying the file path. The function returns the checksum of a file.

Code Sample

hash_file('sha256','path of the file');

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.