gchq / gchq/CyberChef

manchester encoding / decoding

Open
#1,104 4 comments 0 reactions 1 assignee Claimed by @Yashmishra06 View on GitHub
feature help wanted operation
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

manchester encoding (also known as phase encoding) is commonly used with telecommunications and data storage and would be a useful filter in CyberChef, particularly when working with SDR (software defined radio) sourced data

In short to encode, a input value of `1` becomes `01` and a input value of `0` becomes `10`

```
encode(input) {

foreach bit in input {
if bit == 0 {
output.append(1);
output.append(0);
} else {
output.append(0);
output.append(1);
}

return output;
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.