<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
  輸入密碼：
    <input type="text" name="pass" id="pass" />
  <input type="submit" name="button" id="button" value="送出" />
</form>

<?php

echo "密碼的明文：<font color=blue>".$_POST['pass']."<br>";
echo "密碼的sha1密文：<font color=red>".sha1($_POST['pass'])."<br>";

?>



</body>
</html>