Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- crypt() function - long salt --FILE-- <?php $b = str_repeat("A", 124); echo cryp..

Decoded Output download

--TEST--
crypt() function - long salt
--FILE--
<?php

$b = str_repeat("A", 124);
echo crypt("A", "$5$" . $b)."
";
$b = str_repeat("A", 125);
echo crypt("A", "$5$" . $b)."
";
$b = str_repeat("A", 4096);
echo crypt("A", "$5$" . $b)."
";

?>
--EXPECT--
$5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6
$5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6
$5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6

Did this file decode correctly?

Original Code

--TEST--
crypt() function - long salt
--FILE--
<?php

$b = str_repeat("A", 124);
echo crypt("A", "$5$" . $b)."\n";
$b = str_repeat("A", 125);
echo crypt("A", "$5$" . $b)."\n";
$b = str_repeat("A", 4096);
echo crypt("A", "$5$" . $b)."\n";

?>
--EXPECT--
$5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6
$5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6
$5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6

Function Calls

str_repeat 1

Variables

None

Stats

MD5 44e53996f703cfd18886e614c8ce6587
Eval Count 0
Decode Time 91 ms