add base64 encoder/decoder

This commit is contained in:
zyqunix 2025-04-07 20:21:23 +02:00
parent 825c90e3b1
commit a0cff01c36
No known key found for this signature in database
GPG key ID: 134A8DEEA83B80E6
3 changed files with 87 additions and 0 deletions

27
base64/index.html Normal file
View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Base64 Encoder/Decoder</title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="https://rimgo.pussthecat.org/RFbdMMB.png" type="image/x-icon">
</head>
<body>
<h1>Base64 Encoder/Decoder</h1>
<div class="card">
<h2>Base64 Encoder</h2>
<textarea id="encodeInput" rows="5" cols="50" placeholder="Enter text to encode"></textarea>
<textarea id="encodeOutput" rows="5" cols="50" readonly placeholder="Encoded Base64 result"></textarea>
<button id="encode">Encode</button>
</div>
<div class="card">
<h2>Base64 Decoder</h2>
<textarea id="decodeInput" rows="5" cols="50" placeholder="Enter Base64 to decode"></textarea>
<textarea id="decodeOutput" rows="5" cols="50" readonly placeholder="Decoded result"></textarea>
<button id="decode">Decode</button>
</div>
<script src="index.js"></script>
</body>
</html>