Python 3 is not recognized

This commit is contained in:
Quentin 2018-07-07 18:35:25 +02:00
parent 33bdebf49d
commit e87418b9b5
1 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ Special Instructions : 4D4A57564533324E4B524E474D5A4A544F525655343654
C'est de l'hexadécimal. On récupère le tout dans python sous la forme d'un buffer :
```python3
```python
exif_data = "4D4A57564533324E4B524E474D5A4A544F5256553436544850424844455354494A555A4653364B5A474A4D5445544B584C453255344D5356474E475855514C5A4A555A4555334B5049524354435753584A4A5755365632474E5247573252544B4A56564655323232495247584F574C4E4A553245325243534E42484732534A524A5A4346534D433249354C47595453454E4D32453656324F4E4A4E4649554C324A564C565336434F4E4A4558515753584B4532553652434B4E564E4549554C594C4A57554B4E434E495241584F54544E4A553245365632534E4A4D5855524A544C4A4B464B36535A4B5249584F5432454C4A554655334B4B4E4A4D564F534C324C455A455532535049354954475454324A555A553256434B4E524846495A5A534A555A54434F493D"
d1 = bytearray.fromhex(exif_data)
@ -176,7 +176,7 @@ d1 = bytearray.fromhex(exif_data)
J'essaye de décoder l'ASCII du buffer comme de la base64 mais rien. Un peu d'aide exterieure (merci !) me suggère d'essayer la base32 dont je n'avais jamais entendu parler.
```python3
```python
import base64
d2 = base64.b32decode(d1)
@ -185,7 +185,7 @@ d2 = base64.b32decode(d1)
On avance, cette fois-ci ça ressemble à de la base64 :
```python3
```python
d3 = base64.b64decode(d2)
# On a en ASCII : ndh16_{% raw %}{{d7817ba3f2cf61f97e73023bf815ebf9ae2ac26dd30bc804a6b5464dee4989cce431f1621ed982fd41fa80006c89dcc17e53a4086afbcab3cbc8d773712e5863}}{% endraw %}
```