gchq / gchq/CyberChef

Feature request: Improve highlighting by using sourcemaps

Open
#267 0 comments 0 reactions 0 assignees View on GitHub
feature help wanted
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

### Summary

Operation highlighting is currently calculated using offsets. For example, [highlighting "Hello" in the input will highlight the corresponding bytes in the output](https://gchq.github.io/CyberChef/#recipe=To_Base64('A-Za-z0-9%2B/%3D')To_Hexdump(16,false,false)&input=SGVsbG8sIHdvcmxk).

This is not particularly reliable when formats are changed or for more complex operations. A better solution would be to generate some form of sourcemap while running certain operations. This would reveal exactly how the input maps to the output.

Some research is required to work out how to carry this out efficiently and how best to architect the solution.

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.