This repository has been archived by the owner on Jan 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase64.html
67 lines (62 loc) · 2.83 KB
/
base64.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
---
permalink: "/tools/base64.html"
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Base64 Encode JSON Values</title>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous">
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"
integrity="sha384-LtrjvnR4Twt/qOuYxE721u19sVFLVSA4hf/rRt6PrZTmiPltdZcI7q7PXQBYTKyf"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js"></script>
<script src="/js/base64-encoder.js"></script>
</head>
<body class="container">
<h1>Base64 Encode JSON Values</h1>
<div class="alert alert-warning">If you already have a YML file with the
data you
want to encode, you may have to go through a few hoops:
<ol>
<li><a href="http://www.yamllint.com" target="_new">Lint it up to
make it the
cleanest yml possible</a></li>
<li><a href="http://nodeca.github.io/js-yaml/" target="_new">convert
it to
json</a></li>
<li><a href="https://www.charset.org/utf8-to-latin-converter"
target="_new">Convert
to latin1 because base64 doesn't like utf8</a></li>
</ol>
</div>
<form name="encoding">
<!--input type="text" id="salt" name="salt" class="form-control" placeholder="Add an encyrption salt" /-->
<textarea name="input" id="input" class="form-control mb-3"
rows="10"></textarea>
<input type="button" name="encode-submit" id="encode-submit"
class="form-control btn btn-warning mb-3" value="Encode" />
<input type="button" name="decode-submit" id="decode-submit"
class="form-control btn btn-success mb-3" value="Decode" />
<div class="btn btn-primary form-control" id="copy-output"
data-clipboard-target="#encoded-output">Copy Output</div>
<textarea id="encoded-output"
class="form-control border border-success mt-3 p-3"
rows="10"></textarea>
</form>
</body>
</html>