PHP sha1_file() May 22, 2012 Pramod T P It calculates the SHA-1 hash of a file Example <?php echo sha1_file(“test.txt”); ?> Output 1786808aabe8b4f824ef2741a9e63bf8212e52d3