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