forked from nfc-developer/sdm-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdm_info.html
35 lines (34 loc) · 1.29 KB
/
sdm_info.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
{% extends "_layout.html" %}
{% block content %}
<h1>Secure Dynamic Messaging Backend Server Demo</h1>
<p>
<strong style="color: green;">Cryptographic signature validated.</strong>
</p>
<p>
{% if encryption_mode == "LRP" %}
<strong style="color: green;">Encryption mode: {{ encryption_mode }}</strong><br>
{% else %}
Encryption mode: {{ encryption_mode }}<br>
{% endif %}
{% if picc_data_tag %}
PICC Data Tag: <code>{{ picc_data_tag.hex() }}</code><br>
{% endif %}
NFC TAG UID: <code>{{ uid.hex() }}</code><br>
Read counter: <code>{{ read_ctr_num }}</code><br>
{% if file_data %}
File data (hex): <code>{{ file_data.hex() }}</code><br>
File data (UTF-8): <code>{{ file_data_utf8 }}</code><br>
{% if tt_status %}
Tamper Status: <strong style="color: {{ tt_color }};">{{ tt_status }}</strong><br>
(Assuming that "Tamper Status" is stored in the first two bytes of "File data")
{% endif %}
{% endif %}
</p>
<p><a href="/api{{ request.full_path }}" class="btn btn-outline-secondary">View as JSON</a></p>
{% if demo_mode %}
<hr>
<p>
<a href="/">Back to the main page</a>
</p>
{% endif %}
{% endblock %}