sha1_file()

It calculates the SHA-1 hash of a file

Example

<?php
echo sha1_file(“test.txt”);
?>

Output

1786808aabe8b4f824ef2741a9e63bf8212e52d3

Share