oops, my fault, forgot about the code 😛
This is just a script I was testing for implementing it later into a login script.
Here it is :
<?php
$hashthis = $_POST['hashthis'];
$hash = $_POST['hash'];
if($hashthis == true){
$hash_result = sha1($hash);
echo "$hash_result";
}else{
echo "<form method=POST action=b64.php enctype=\"multipart/form-data\">
What do you want to hash, sir?<br>
<input type=password name=hash size=20><br>
<input type=hidden name=hashthis value=true>
<input type=submit value=Verzenden name=B1>
</form>";
}
?>
edit : The file is called b64.php because I was testing base64 first, but because that's decryptable I don't use it 🙂