php sha1() function

The sha1() function is used to encrypts the password at 160 bit hash.which function is accepts string input and produces a fixed-length signature.

Demo :



Type Text  

Example :

Type Text : Hello World.

Following code is used to sha1() demo code If you need to copy and use to your web site.


<?php
  $sha1_function="hello world";
  $result=sha1($sha1_function);
  echo $result;
?>

The sentence will pass to the sha1() function.Finally output will display "0a4d55a8d778e5022fab701977c5d840bbc486d0".In the sha1() function have one parameters that name is string str.

Free Download Script :

If you need sha1() function demo code click and download from following link.

Download




Content