-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
25 lines (23 loc) · 1.3 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<script src="./commands.js"></script>
<script src="./responsens.js"></script>
<script src="./parseAPDU.js"></script>
<script>
function testAPDU() {
let apdu = "75 20 88 61 25 80 79 E6 FC D3 59 6F CE 9B 3E E0 E0 FE 71 BA 8A EA 02 5E 78 EE 26 1D 81 DE 98 46 19 0D C5 3F 80 6B 8A 5B 81 77 58 DC 9B 43 42 A7 C0 01 30 A0 B3 AD 83 42 73 E3 3C D3 CE B8 0C 8F EA 22 16 E2 8B 19 8A 2A 6C F8 95 6F A3 E5 7F 11 9C D7 15 3D C8 F4 8F AF 0B AB 0B C3 2F B5 38 36 4E B2 08 64 14 91 0A CC 42 60 DE 46 56 8F E6 D2 FC C1 EE 26 FC 56 A7 4D 3A 83 1B 92 25 77 8C AE EA 8A BC 4B 84 E3 81 89 EB CA 56 82 BC B0 36 4D AD 3D 79 9A 3A C6 2C F9 64 B1 31 F4 01 E5 C6 22 D5 D4 5D F4 27 DC 12 93 2A A6 06 C7 E1 DF 12 F2 31 23 F5 4C B1 15 D5 B9 39 78 27 A3 9E 02 41 D9 22 C5 4C 7B B4 CB 4F B5 A0 8F 99 84 51 E5 4A 6A 7B F4 6F A6 B7 B8 2A 67 69 16 28 15 81 15 7E 42 39 E9 CA 4D 54 F5 D6 8C E2 81 36 BA 5F CD DB 14 FB 0A 3F 28 7A 9A 97 D1 46 59 B9 FC F6 9F 26 ED 90 00 "; // command
// let apdu = "90 00"
var parsedAPDU = parseAPDU(apdu, function(parsedAPDU){
for (var property in parsedAPDU) {
if (parsedAPDU.hasOwnProperty(property)) {
document.body.innerHTML += "<p>" + property + ":" + parsedAPDU[property] + "</p>";
}
}
});
}
</script>
</head>
<body onload="testAPDU()">
</body>
</html>