forked from bmlt-enabled/bmlt-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateCryptedPassword.php
More file actions
24 lines (21 loc) · 927 Bytes
/
Copy pathcreateCryptedPassword.php
File metadata and controls
24 lines (21 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Create Crypted Password for BMLT</title>
</head>
<body>
<form action="#" method="GET">
<pre><label for="input-password">Enter A Password to be Crypted:</label> <input type="text" size="64" name="input-password" id="input-password"<?php if ( isset ( $_REQUEST['input-password'] ) && $_REQUEST['input-password'] ) { echo 'value="'.$_REQUEST['input-password'].'" '; } ?> /></pre>
<input type="submit" value="Encrypt" />
</form>
<?php
if ( isset ( $_REQUEST['input-password'] ) && $_REQUEST['input-password'] ) {
$password = $_REQUEST['input-password'];
$val = TRUE;
$testCrypt = password_hash($password, PASSWORD_DEFAULT);
echo "<hr /><pre>Result: $testCrypt</pre><hr />";
}
?>
</body>
</html>