Nom d'utilisateur: 
Mot de passe: 
Restreindre la session à cette IP 
Questions  |  score: 0  |  0.33 2.67 2.33 |  Résolu par 63 personnes  |  4075 views  |  depuis Février 12, 2023 - 01:04:47

CGX#4: Ascii Encoding (Encoding, Training, CGX)

ASCII Encoding
Hello future Hackers,

We have created the next lesson.
This time we talk about ascii encoding.
Again, the challenge is more informative and gives no points.

Happy Challenging!
- gizmore and x
problem: 4
Cette leçon comporte un problème interactif :

72 101 108 108 111 32 73 110 118 105 116 195 169 46 32 83 111 108 117 116 105 111 110 58 32 76 68 80 87 82 48 83 77

Le problème est généré aléatoirement et est lié à votre session.

Bonne chance!
L'équipe WeChall
Votre solution pour CGX#4: Ascii Encoding
Réponse
# CGX#4: Ascii Encoding

Computers can only work with numbers.
We need a mapping, for converting numbers to written characters, to display text to humans.
The [ASCII](https://en.wikipedia.org/wiki/ASCII)
[encoding](../README.md)
was one of the first encoding to solve this problem.


## ASCII

- 1 byte per character.
- Original 7 bit + 1 bit [checksum]()
- [ASCII Table](https://www.asciitable.com/)


## Other encodings
- C64 Screencode (A=1, B=2, ...)
- 8bit ASCII / extended ASCII
- Win ISO
- Unicode with UTF 8/16/32


## PHP Implementation
- number to letter (chr())
- letter to number (ord())
- string encodings in PHP
© 2023 et 2024 by gizmore et x