Tool to encrypt/decrypt using Manchester line coding. Manchester code is a binary signal encoding via a synchronization clock.
Manchester Code - dCode
Tag(s) : Telecom
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
A signal coded with Manchester is constituted of a logic 0 is indicated for a transition from the low level to the high level or a logical 1 for a transition from the high level to the low level.
The line coding can be modeled as a logical exclusive or ('xor' ⊕) with the signal of the synchronization clock.
Example:
Signal | Code | |
In | __¯¯ | 0 1 |
Clock | _¯_¯ | 0101 |
Manchester | _¯¯_ | 0110 |
Depending on the standard used, the binary code may be totally inverted. The IEEE 802.4 standard used for Ethernet buses is the opposite of what was originally proposed by G. E. Thomas as the inventor of Manchester coding.
The Manchester code, when written, takes 2 times more space than the original code (while the signal is in practice of the same length).
Deciphering consists in listing the transitions and decoding them thus: from high to low: logical 1, from low to high: logical 0. When the XOR is re-made with the synchronization clock, the original signal is found again.
Example:
Signal | Code | |
Manchester | _¯¯_ | 0110 |
Clock | _¯_¯ | 0101 |
Original Signal | __¯¯ | 0 1 |
In writing, the original code is 2 times shorter than the Manchester code (while the signal is in practice of the same length).
The IEEE802.4 bus network Ethernet standard uses the Manchester code, but reverses the encoding (0 and 1). In this standard, a logical 1 is indicated for a transition from the low level to the high level and a logical 0 for a transition from the high level to the low level.
G. E. Thomas was the first to have presented the Manchester coding in 1949.
dCode retains ownership of the "Manchester Code" source code. Any algorithm for the "Manchester Code" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Manchester Code" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Manchester Code" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Manchester Code" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Manchester Code on dCode.fr [online website], retrieved on 2025-04-16,