Hallo One2xs,
Bij deze een hele simpele MD5 encoder.
Voorbeeld: http://powngamer.nl/md5encoder.php
Code (MD5):
Code (Base64)
Ik weet dat het niet een hele nette code is, maar het werkt wel.
Groeten,
SebastiaanH
toevoeging op 12 februari 2012, 15:59:58:
Je kan het natuurlijk ook veranderen naar SHA, wat zeker veiliger is!
Bij deze een hele simpele MD5 encoder.
Voorbeeld: http://powngamer.nl/md5encoder.php
Code (MD5):
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]string[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Voer wel tekst in![/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Uitkomst: [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]string[/COLOR][COLOR= #007700]])) .[/COLOR] [COLOR= #DD0000] [/COLOR][COLOR= #007700];
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<form action="#" method="post" />
Tekst: <br />
<input type="text" name="string" /> <br /> <br />
<input type="submit" name="submit" value="Encode" />
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?> Code (Base64)
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]string[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Voer wel tekst in![/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Uitkomst: [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/base64_encode"]base64_encode[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]string[/COLOR][COLOR= #007700]])) .[/COLOR] [COLOR= #DD0000] [/COLOR][COLOR= #007700];
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<form action="#" method="post" />
Tekst: <br />
<input type="text" name="string" /> <br /> <br />
<input type="submit" name="submit" value="Encode" />
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?> Ik weet dat het niet een hele nette code is, maar het werkt wel.
Groeten,
SebastiaanH
toevoeging op 12 februari 2012, 15:59:58:
Je kan het natuurlijk ook veranderen naar SHA, wat zeker veiliger is!

Nice, maar hoort dit niet in webwereld?
