-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (58 loc) · 2.66 KB
/
index.html
File metadata and controls
69 lines (58 loc) · 2.66 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
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Encryptify - Secret Message</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Display User IP -->
<div id="user-ip">Your IP is: Fetching...</div>
<!-- Floating Reset Fields Button (Always Accessible) -->
<button id="resetFieldsBtn" onclick="resetFields()">Reset Fields</button>
<div class="container">
<h1>🔐 Encryptify - Secert Message</h1>
<!-- Cipher Key Management (Moved to Top) -->
<div class="key-box">
<h2>🗝️ Cipher Key</h2>
<p id="currentKey">Default Key</p>
<button onclick="downloadCipherKey()">Download Key</button>
<label class="custom-file-upload">
<input type="file" id="uploadKey" onchange="uploadCipherKey()"> Choose Custom Key
</label>
<button onclick="resetCipherKey()">Reset Key</button>
</div>
<!-- Encrypt Section -->
<div class="box">
<h2>Encrypt Message</h2>
<div class="input-container">
<textarea id="plainText" placeholder="Enter text..." oninput="realTimeEncrypt()"></textarea>
<textarea id="cipherText" placeholder="Encrypted text..." readonly></textarea>
</div>
<button onclick="pasteText('plainText')">Paste</button>
<button onclick="copyToClipboard('cipherText')">Copy</button>
<button onclick="downloadText('cipherText', 'encrypted_text.txt')">Download</button>
</div>
<!-- Decrypt Section -->
<div class="box">
<h2>Decrypt Message</h2>
<div class="input-container">
<textarea id="decryptInput" placeholder="Enter encrypted text..." oninput="realTimeDecrypt()"></textarea>
<textarea id="decryptedText" placeholder="Decrypted text..." readonly></textarea>
</div>
<button onclick="pasteText('decryptInput')">Paste</button>
<button onclick="copyToClipboard('decryptedText')">Copy</button>
<button onclick="downloadText('decryptedText', 'decrypted_text.txt')">Download</button>
</div>
</div>
<!-- Page Visit Counter -->
<div id="visit-counter">Page Visits: <span id="counter">0</span></div>
<!-- Footer -->
<footer>
<p>Project Encrypted by <a href="https://github.com/ARSN72/" target="_blank">Arshan Mansuri</a></p>
<p><a href="https://github.com/ARSN72/Encryptify" target="_blank">Fork us</a></p>
</footer>
<script src="script.js"></script>
</body>
</html>