gchq / CyberChef

The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis
https://gchq.github.io/CyberChef
Apache License 2.0
27.29k stars 3.09k forks source link

Feature request: VSCode Extension #1392

Open ThaDaVos opened 1 year ago

ThaDaVos commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. E.g. I'm always frustrated when [...]

Currently one has to copy text/code/whatever from VSCode to CyberChef, select the recipe one wants, run it and copy it back - it isn't that cumbersome unless you have to do it many times

Describe the solution you'd like A clear and concise description of what you want to happen. The solution sounds simple, a extension for VSCode so one can run CyberChef inside VSCode, preferably just by:

  1. Selecting Text
  2. Selecting recipe to run
  3. Replace selected text with result of recipe

Also include CyberChef itself for easy Recipe creation/editing and manually methods - why? As you won't have to switch then.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. copy text/code/whatever from VSCode to CyberChef, select the recipe one wants, run it and copy it back

Also quickly looked at creating extensions myself, but sadly due busy schedule didn't really have the time for it

Additional context Add any other context or screenshots about the feature request here.

carsonbird commented 7 months ago

Oh man, this would be amazing. I use cyberchef so often, but it requires context switching out of my development tools. Even just an embedded browser page in VSCode would be an acceptable workaround. I wonder if that already exists...

Esonhugh commented 3 months ago

I used vscode task with comamnd:simpleBroswer.show to meet this issue.

https://stackoverflow.com/questions/68486893/vs-code-task-to-open-vs-codes-simple-browser-with-a-url#:~:text=%7B%0A%20%20%20%20,%20%20%7D%0A%20%20%5D

{
        "tasks": [{
            "label": "Encoder/Decoder",
            "command": [
                "${input:visit-cyberchef}"
            ],
            "problemMatcher": []
        }],
        "inputs": [{
            "id": "visit-cyberchef",
            "type": "command",
            "command": "simpleBrowser.show",
            "args": [
                "https://gchq.github.io/CyberChef/"
            ]
        }]
}