-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (117 loc) · 3.73 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Encriptar y desencriptar información con JavaScript - By Parzibyte</title>
<link rel="stylesheet" href="./bulma.min.css">
<script type="text/javascript" src="script.js"></script>
<style>
pre {
overflow-x: auto;
white-space: pre-wrap
}
</style>
</head>
<body>
<nav class="navbar is-warning" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="https://parzibyte.me/blog">
<img alt=""
src="https://raw.githubusercontent.com/parzibyte/ejemplo-mern/master/src/img/parzibyte_logo.png"
style="max-height: 80px" />
</a>
<button class="navbar-burger is-warning button" aria-label="menu" aria-expanded="false"
data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</button>
</div>
<div class="navbar-menu">
<div class="navbar-start">
<strong class="navbar-item">Encriptar y desencriptar con JavaScript</strong>
</div>
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<a target="_blank" rel="noreferrer" href="https://parzibyte.me/l/fW8zGd"
class="button is-primary">
<strong>Soporte y ayuda</strong>
</a>
</div>
</div>
</div>
</div>
</nav>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", () => {
const boton = document.querySelector(".navbar-burger");
const menu = document.querySelector(".navbar-menu");
boton.onclick = () => {
menu.classList.toggle("is-active");
boton.classList.toggle("is-active");
};
});
</script>
<section class="section">
<div class="columns">
<div class="column">
<h2 class="is-size-2">Encriptar</h2>
<div class="field">
<label class="label">Contraseña</label>
<div class="control">
<input id="contraseñaEncriptar" class="input" type="password"
placeholder="Escribe la contraseña">
</div>
</div>
<div class="field">
<label class="label">Información para encriptar</label>
<div class="control">
<textarea id="informacionEncriptar" class="textarea"
placeholder="Alguna cadena, JSON, etcétera"></textarea>
</div>
</div>
<button class="button is-success" id="botonEncriptar">Encriptar</button>
<div class="field">
<label class="label">Resultado</label>
<div class="control">
<textarea readonly id="resultadoEncriptacion" class="textarea"></textarea>
</div>
</div>
</div>
<div class="column">
<h2 class="is-size-2">Desencriptar</h2>
<div class="field">
<label class="label">Contraseña</label>
<div class="control">
<input class="input" id="contraseñaDesencriptar" type="password"
placeholder="Escribe la contraseña">
</div>
</div>
<div class="field">
<label class="label">Información para desencriptar, en base64</label>
<div class="control">
<textarea class="textarea" id="informacionDesencriptar"
placeholder="La cadena cifrada previamente con este programa"></textarea>
</div>
</div>
<button class="button is-success" id="botonDesencriptar">Desencriptar</button>
<div class="field">
<label class="label">Resultado</label>
<div class="control">
<textarea readonly id="resultadoDesencriptacion" class="textarea"></textarea>
</div>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="content has-text-centered">
<p>
<strong>Este código no es mio, en el futuro crearé uno y lo subire a Github Pages </strong>
</p>
</div>
</footer>
</body>
</html>