Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

STRONG cryptography, SHA-1

Code
<?php



$str = "12345678"; # <input type="password" name="password">
echo "<h1>SHA1</h1>".sha1($str);
$str2 = sha1($str);
echo "<br>";
$array = array(sha1($str));

echo "<br>";
$arr1 = str_split($str2); #str_split — Convert a string to an array
$arr2 = str_split($str,2); #str_split — Convert a string to an array

echo "<br>";


for($i=0; $i<sizeof($arr1); ++$i) { #typically rendered as a hexadecimal number, 40 digits long
    if ($i <=19){
    $a[]=$str2[$i];        
    }
    elseif ($i >19 && $i <=21)
    $b[]=$str2[$i];
    else
    $c[]=$str2[$i];
}

$comma_separated = implode($a); #implode — Join array elements with a string
$comma_separated2 = implode($c); #implode — Join array elements with a string


echo "<br>";
echo "<h1>SHA1-pwd000: </h1>".$comma_separated.$arr2[0].$comma_separated2;
?>
I think you should provide some information with your code instead of just dumping this out. I can see what you're doing here, but it's important to give some context for people reading your threads.
I can see that. Thank you for sharing.
\(〇_o)/


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by HackooMay 16, 2018 01:05 PM 14 410 May 16, 2018 01:05 PM
Last Post: HFDone
[Python] by Powa.Dec 11, 2014 08:32 PM 1 188 Dec 11, 2014 08:32 PM
Last Post: nbc_
[Python] by ノクス。Feb 12, 2013 01:44 PM 23 690 Feb 12, 2013 01:44 PM
Last Post: PigBacon