string sha1 ( string str [, bool raw_output] ) : sha1 « Utility Function « PHP






string sha1 ( string str [, bool raw_output] )

 
<?
    print sha1("hello") . "\n";
    print sha1("Hello") . "\n";
    print sha1("hello") . "\n";
    print sha1("This is a very, very, very, very, very, very, very long test");
?>
  
  








Related examples in the same category

1.Comparing the output of md5 to that of sha1
2.Generating a Unique Identifier