-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
57 lines (56 loc) · 1.85 KB
/
index.php
File metadata and controls
57 lines (56 loc) · 1.85 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
$textToEncrypt = '';
$encryptedText = '';
?>
<!DOCTYPE html>
<html>
<head>
<title>
Encryption
</title>
<style type="text/css">
<?php include('css/main.css'); ?>
</style>
</head>
<body>
<div class="main">
<?php
include('library.php');
?>
<div class="firstBorn">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<table>
<tr>
<td>
<p class="head">Text to encrypt</p>
</td>
</tr>
<tr>
<td>
<textarea name="textToEncrypt"><?php echo $textToEncrypt; ?></textarea>
</td>
</tr>
<tr>
<td>
<p class="head">Encrypted text</p>
</td>
</tr>
<tr>
<td>
<textarea name="encryptedText"><?php echo $encryptedText; ?></textarea>
</td>
</tr>
<tr>
<td style="text-align:right;">
<input type="submit" value="Encrypt" class="submitButton" name="encrypt" />
<input type="submit" value="Decrypt" class="submitButton" name="decrypt" />
</td>
</tr>
</table>
</form>
<div class="output">
</div>
</div>
</div>
</body>
</html>