This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
101 lines (92 loc) · 4.56 KB
/
index.php
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ASN.1 Decoder</title>
<meta name="description" content="A web page to decode any BER encoded data and display it nice and clearly to the user">
<meta name="author" content="Friedrich Große">
<link href="css/main.css" rel="stylesheet"/>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/smoothness/jquery-ui-1.8.24.custom.css" rel="stylesheet">
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/jquery-ui-1.8.24.custom.min.js"></script>
</head>
<body>
<!-- JQueryUI -->
<script>
$(function() {
$( "#aboutDialog" ).dialog({
autoOpen: false,
modal: true,
width: "500px"
});
});
</script>
<div id="aboutDialog" title="About ASN.1 Decoder">
<!-- The About Dialog -->
<p>ASN.1 Decoder was created by <a class="aboutLink" href="https://github.com/FGrosse">Friedrich Große</a>.<br>
It is a complete <a class="aboutLink" href="http://en.wikipedia.org/wiki/ASN.1">ASN.1</a>
<a class="aboutLink" href="http://en.wikipedia.org/wiki/Basic_Encoding_Rules">BER</a> parser build in PHP.
</p>
<p>
All of the source code is published under the GPL license and can be found <a class="aboutLink" href="https://github.com/FGrosse/PHPASN1">on GitHub</a>.
If you encounter strange behaviour or bugs please use the <a class="aboutLink" href="https://github.com/FGrosse/ASN.1-Decoder/issues">GitHub Issues page</a> to let me know.
</p>
</div>
<!-- Content -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">ASN.1 BER Decoder</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href='#about' onclick='$("#aboutDialog").dialog("open");'>About</a></li>
<li><a href="https://github.com/FGrosse/ASN.1-Decoder"><img src="img/github.png" style="width: 16px; vertical-align: text-top;"/ > Find me on GitHub</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="hero-unit" style='padding-top: 20px;'>
<h2>Input your Base64 encoded data here:</h2>
<form method="post">
<textarea name='input' rows="16" class="span10" style="font-family: monospace; width: 799px;">
MIIDfjCCAuegAwIBAgIKZGgbPQAAAABnVTANBgkqhkiG9w0BAQUFADBGMQswCQYD
VQQGEwJVUzETMBEGA1UEChMKR29vZ2xlIEluYzEiMCAGA1UEAxMZR29vZ2xlIElu
dGVybmV0IEF1dGhvcml0eTAeFw0xMjA4MTYxMjI2MTlaFw0xMzA2MDcxOTQzMjda
MGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1N
b3VudGFpbiBWaWV3MRMwEQYDVQQKEwpHb29nbGUgSW5jMRYwFAYDVQQDEw13d3cu
Z29vZ2xlLmRlMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEoGt7UvjRfcHM
tHNixkq3marhniRadVnpzux9iqTfB8sLIf39djxjoxOmaP6ddk7ZE8UaZ2eI22Kv
Yk9CLC8RLBMWkiql03gjzZ9D0fxUUT0Usp42mR8IoELELqru5f6OLLEBZxdKNZzr
9vrMLJypM61AMTfuLD9MvtlGASnHKwIDAQABo4IBUDCCAUwwHQYDVR0lBBYwFAYI
KwYBBQUHAwEGCCsGAQUFBwMCMB0GA1UdDgQWBBS7E76yPlQGezzNghLX64dAkcH1
HTAfBgNVHSMEGDAWgBS/wDDr9UMRPme6npH7/Gra42sSJDBbBgNVHR8EVDBSMFCg
TqBMhkpodHRwOi8vd3d3LmdzdGF0aWMuY29tL0dvb2dsZUludGVybmV0QXV0aG9y
aXR5L0dvb2dsZUludGVybmV0QXV0aG9yaXR5LmNybDBmBggrBgEFBQcBAQRaMFgw
VgYIKwYBBQUHMAKGSmh0dHA6Ly93d3cuZ3N0YXRpYy5jb20vR29vZ2xlSW50ZXJu
ZXRBdXRob3JpdHkvR29vZ2xlSW50ZXJuZXRBdXRob3JpdHkuY3J0MAwGA1UdEwEB
/wQCMAAwGAYDVR0RBBEwD4INd3d3Lmdvb2dsZS5kZTANBgkqhkiG9w0BAQUFAAOB
gQBOBSVeQj4EiCzcgVUmO9BIzQqOHgOQq2ePbgrUln9aX+0SCLvJf/38HrT884Jf
CznPwmTKJmjLRIq6v6RPvYC9O45EM7kjB1YXcCCKiPK7IGmJf8dwZAO4MKLtJnv4
D0k6lc6/SWpmbg33TqEDjl8OsvMUzV6S8XRz2L/rqZ1z1g==
</textarea>
<p><button type="submit" class="btn btn-primary">Decode</button></p>
</form>
<?php if(isset($_POST['input'])) {require_once 'process.php';} ?>
</div>
<hr>
<footer>
<p class="pull-right" style="text-align: right;">
Built with <a href="http://twitter.github.com/bootstrap">Bootstrap</a>
and <a href="http://jqueryui.com/">JQuery UI</a>
</p>
<p>© <a href="https://github.com/FGrosse"><i class="icon-user"></i> Friedrich Große</a>, Berlin 2012</p>
</footer>
</div>
<!-- Javascript placed at the end of the document so the pages load faster -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>