TOOLS.PERVII.COM
Online Conversion Tools
function sha1()
Calculates the sha1-hash of a string.
Returns the hash as a 40-character hexadecimal number.
PHP function sha1()
string sha1 ( string $data )
Example
:
Text
=>
c3328c39b0e29f78e9ff45db674248b1d245887d
(4 characters
=>
40 characters
)
Text:
PHP code:
sha1.php
<form method="POST"> <textarea rows="1" cols="45" name="sha1" > <? if(isset($_POST['sha1'])) {echo $_POST['sha1']);} ?> </textarea> <input type="submit" value="send" /> </form> <? if(isset($_POST['sha1'])) {echo sha1($_POST['sha1']);} ?>
Online PHP functions
Encoding strings
base64_encode
base64_decode
rawurlencode
rawurldecode
urlencode
urldecode
Encryption
md5
sha1
Length of string
strlen
mb_strlen
crc32
Processing strings
nl2br
strrev
Get all headers
exif_read_data
Converts (IPv4)
ip2long
long2ip
CIDR
IPv4 CIDR calculator
IPv4 CIDR to Host Range
IPv6 CIDR to Host Range
ACL - Access Control List
IP Allow, Deny .htaccess
IP Allow, Deny, Reset FreeBSD
uTorrent IPfilter.dat by country