*a little bumpy update*
SHA1:
PHP Code:
<?php
if($_POST['go'] == 'Go')
{
echo sha1($_POST['text']);
} else {
echo "<form method='post' action='encrypt.php'>
<input type='text' name='text'> <input type='submit' name='go' value='Go'>
</form>";
}
?>
That gives the SHA1 output.
For extra security:
PHP Code:
<?php
if($_POST['go'] == 'Go')
{
echo sha1(md5(str_rot13($_POST['text'])));
} else {
echo "<form method='post' action='encrypt.php'>
<input type='text' name='text'> <input type='submit' name='go' value='Go'>
</form>";
}
?>
The above will do SHA1, MD5 and then ROT13
