-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (47 loc) · 2.13 KB
/
index.html
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
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aplikasi Presensi Sederhana</title>
<link rel="stylesheet" href="style.css">
<!-- Memuat pustaka CryptoJS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1-crypto-js.js"></script>
<!-- Memuat pustaka jsrsasign untuk RSA -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/jsrsasign-all-min.js"></script>
<script src="https://cdn.rawgit.com/travist/jsencrypt/master/bin/jsencrypt.min.js"></script>
</head>
<body>
<div class="container">
<h1>Aplikasi Presensi Sederhana</h1>
<div class="input-section">
<label for="name">Nama Lengkap:</label>
<input type="text" id="name" placeholder="Masukkan nama Anda">
<label for="attendance-time">Waktu Presensi:</label>
<input type="text" id="attendance-time" placeholder="Waktu presensi otomatis" readonly>
</div>
<div class="action-buttons">
<button id="submit-presence">Submit Presensi</button>
</div>
<div class="result-section">
<h3>Hasil Enkripsi:</h3>
<div>
<label for="sha-result">SHA-256 Hash:</label>
<textarea id="sha-result" readonly placeholder="Hasil SHA-256"></textarea>
</div>
<div>
<label for="aes-result">AES Encrypted:</label>
<textarea id="aes-result" readonly placeholder="Hasil AES"></textarea>
</div>
<div>
<label for="rsa-result">RSA Encrypted:</label>
<textarea id="rsa-result" readonly placeholder="Hasil RSA"></textarea>
</div>
</div>
</div>
<!-- Memuat skrip JavaScript -->
<script src="app.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsrsasign/10.8.1/jsrsasign-all-min.js"></script>
</body>
</html>