[go: up one dir, main page]

Menu

[r110]: / md5.php  Maximize  Restore  History

Download this file

40 lines (31 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
echo "<!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=windows-1251\" />
<title>Кафедра \"Компьютерные системы автоматизации производства\" МГТУ им.Н.Э.Баумана</title>
<link rel=\"shortcut icon\" href=\"design/rk9mini.png\" type=\"image/png\">
<link href=\"design/style1.css\" rel=\"stylesheet\" type=\"text/css\" />
<style type=\"text/css\">
<!--
body {
background-image: url(design/bg_main.png);
}
-->
</style></head>
<body marginheight=\"0\">";
echo "<form id=\"form1\" name=\"form1\" method=\"post\" action=\"\">\n";
echo " <label>Введите пароль\n";
echo " <input type=\"password\" name=\"uenterpas\"><br>\n";
echo " <label>Повторите пароль\n";
echo " <input type=\"password\" name=\"uenterpas2\"><br>\n";
echo " <input type=\"submit\" name=\"add\" id=\"add\" value=\"Получить хэш\" />\n";
echo "</form>\n";
if($uenterpas==$uenterpas2) {
$userhash = md5($uenterpas."t1sh1na");
if ($uenterpas!="") echo "Хэш вашего паролья: ".$userhash ;
}
else echo "Пароли не совпадают";
echo "
</body>
</html>"; ?>