sha1()

It calculates the SHA-1 hash of a file

Example

<?php
echo sha1(“phpcode”);
?>

Output

1786808aabe8b4f824ef2741a9e63bf8212e52d3

Share