forked from s12v/hasher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
137 lines (125 loc) · 5.96 KB
/
popup.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!doctype html>
<html>
<head>
<title>Hasher</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="main.css" type="text/css" rel="stylesheet" />
<script src="lib/jquery-1.7.2.min.js" type="text/javascript" ></script>
<script src="lib/cryptojs/components/core-min.js"></script>
<script src="lib/cryptojs/components/enc-base64-min.js"></script>
<script src="lib/cryptojs/components/enc-utf16-min.js"></script>
<script src="lib/cryptojs/rollups/md5.js"></script>
<script src="lib/cryptojs/rollups/sha1.js"></script>
<script src="lib/cryptojs/rollups/sha224.js"></script>
<script src="lib/cryptojs/rollups/sha256.js"></script>
<script src="lib/cryptojs/rollups/sha384.js"></script>
<script src="lib/cryptojs/rollups/sha512.js"></script>
<script src="lib/cryptojs/rollups/hmac-md5.js"></script>
<script src="lib/cryptojs/rollups/hmac-sha1.js"></script>
<script src="lib/cryptojs/rollups/hmac-sha224.js"></script>
<script src="lib/cryptojs/rollups/hmac-sha256.js"></script>
<script src="lib/cryptojs/rollups/hmac-sha384.js"></script>
<script src="lib/cryptojs/rollups/hmac-sha512.js"></script>
<script src="lib/cryptojs/rollups/aes.js"></script>
<script src="lib/cryptojs/rollups/tripledes.js"></script>
<script src="lib/cryptojs/rollups/rabbit.js"></script>
<script src="lib/cryptojs/rollups/rc4.js"></script>
<script src="lib/hash/md4.js"></script>
<script src="lib/hash/ripemd.js"></script>
<script src="lib/hash/whirpool.js"></script>
<script src="lib/hash/crc.js"></script>
<script src="lib/snov/numbers.js"></script>
<script src="lib/snov/romanconverter.js"></script>
<script src="lib/snov/rot13.js"></script>
<script src="lib/snov/ipcalc.js"></script>
<script src="hasher.js"></script>
<script src="popup.js"></script>
</head>
<body>
<div id="screen-1" class="screens">
<div id="info"><a href="#info"><img id="button-info" class="buttons-2" src="images/info.png" width="16" height="16" title="About" alt="" /></a><span style="border-right: 1px solid #ccc; margin-left: 5px; margin-right: 5px;"></span><img id="button-popout" class="buttons-2" src="images/popout.png" width="16" height="16" title="Open in new tab" alt="" /></div>
<ul id="tabs" class="buttons"><li id="hash" class="on l1">Hash</li><li id="hmac" class="l2">HMAC</li><li id="crc" class="l2">CRC</li><li id="cipher" class="l3">Cipher</li><li id="net">Net</li><li id="time">Time</li><li id="number" class="l1">Num</li><li id="string" class="l3">Strings</li><li id="encode">Encode</li></ul>
<!-- input -->
<div id="input">
<div class="title">
Input:
</div>
<textarea id="input-value" style="min-width: 400px;" autofocus></textarea>
<div id="input-password-wrapper" style="display: none;">
<div class="title">
Password:
</div>
<input id="input-password" type="password" />
</div>
</div>
<!-- output -->
<div id="output">
</div>
</div>
<div id="screen-2" class="screens">
<div style="position: absolute;">
<a href="" class="button">Back</a>
</div>
<div style="position: absolute; right: 10px;">
<a href="https://chrome.google.com/webstore/detail/kignjplbjlocolcfldfhbonmbblpfbjb/reviews" class="button" target="_blank" title="Rate & review!">
<img src="images/star.png" alt="" style="border: 0; vertical-align: middle;" /><img src="images/star.png" alt="" style="border: 0; vertical-align: middle;" /><img src="images/star.png" alt="" style="border: 0; vertical-align: middle;" /><img src="images/star.png" alt="" style="border: 0; vertical-align: middle;" /><img src="images/star.png" alt="" style="border: 0; vertical-align: middle;" />
</a>
</div>
<h1 style="text-align: center;">
About
</h1>
<p>
This extension is used to compute cryptographic hashes and do common conversions. It might be useful for programmers and system administrators.
It's entirely implemented in JavaScript, all calculations are performed on client side, so <b>it's safe</b>.
</p>
<ul>
<li>
<b>Hash</b>:
MD5, SHA-1, SHA-2 (224, 256, 384, 512), RIPEMD-160, MD4, Whirpool
</li>
<li>
<b>HMAC</b>:
MD5, SHA-1, SHA-2 (224, 256, 384, 512), RIPEMD-160, MD4
</li>
<li>
<b>CRC</b>:
CRC-8, CRC-16, FCS-16, FCS/CRC-32
</li>
<li>
<b>Cipher</b> <i title='openssl enc -aes-256-cbc -in infile -out outfile -pass pass:"Secret Passphrase" -e -base64' style="cursor: help; border-bottom: 1px dashed #111;">(interoperable with OpenSSL)</i>:
AES-256, DES, Triple DES, Rabbit, RC4, RC4Drop. CBC/Pkcs7 is used.
</li>
<li>
<b>Net</b>:
Subnet calculator, Ip ↔ Dec, Ip → Bin, Ip → Hex
</li>
<li>
<b>Time</b>:
Unix ↔ Datetime, Unix ↔ RFC-1123, Unix ↔ ISO 8601
</li>
<li>
<b>Numbers</b>:
Dec ↔ Hex, Dec ↔ Bin, Dec ↔ Roman
</li>
<li>
<b>Strings</b>:
ASCII ↔ Hex, UTF-8 ↔ Hex, UTF-16 ↔ Hex
</li>
<li>
<b>Encode</b>:
Base64, ROT-13, JavaScript encodeURI(), encodeURIComponent(), HTML special chars encode/decode
</li>
</ul>
<p>
<b>Usage:</b> enter text and click on the result. It will be <b>copied to clipboard</b>.
</p>
<p>
Extension is using <a href="http://code.google.com/p/crypto-js/" target="_blank">crypto-js</a> and other open-source libraries.<br/>
See the source code on <a href="http://github.com/s12v/hasher" target="_blank">github</a>.
</p>
<p>
Developed by <a href="http://snov.me/" target="_blank">Sergey Novikov</a>
</p>
</div>
</body>
</html>