Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request #482

Closed
jeffli678 opened this issue Jan 30, 2019 · 1 comment
Closed

Feature Request #482

jeffli678 opened this issue Jan 30, 2019 · 1 comment

Comments

@jeffli678
Copy link

jeffli678 commented Jan 30, 2019

Summary

Generate a script or source code to perform the current recipe.

Given the project is written in HTML + JS, it should not be very difficult to generate a js function that takes the input as a parameter and produce the output, exactly as the recipe does. This could drastically shorten my workflow as sometimes after I prototype a reverse engineered algorithm, I still have to implement it from scratch. If CyberChef can generate a function, I directly get what I need.

If this feature is welcomed, I would suggest devising an interface to allow volunteers to implement the individual algorithms in other languages (e.g., Python), then CyerChef can generate a source directly in that language. I hope I explained what I am suggesting.

@n1474335
Copy link
Member

n1474335 commented Feb 8, 2019

Hi @jeffli678, thanks for the suggestion.

I have wanted to implement this for years. Unfortunately it isn't quite as simple as it sounds due to imports, data type conversions etc. However, I do absolutely intend to add it once the NodeAPI work has been merged in #291. This will make the process much easier. I envisage a tab in the "Save recipe" pane that shows a simple script that imports the cyberchef npm package and executes your current recipe.

Re-implementing all 280+ operations in Python would be awesome, but perhaps not the best use of time. Instead, I think a CyberChef RESTful API would offer more bang for its buck. You could then query this remotely from Python if you wanted to. This is something we're working on. Watch this space.

@n1474335 n1474335 closed this as completed Feb 8, 2019
BRAVO68WEB pushed a commit to BRAVO68WEB/CyberChef that referenced this issue May 29, 2022
BRAVO68WEB pushed a commit to BRAVO68WEB/CyberChef that referenced this issue May 29, 2022
RIP my hand written YAML parser, you served me well. Replaced with the js-yaml node package
BRAVO68WEB pushed a commit to BRAVO68WEB/CyberChef that referenced this issue May 29, 2022
[FIX] General issues and improvements
Fixes gchq#452
Fixes gchq#454
Fixes gchq#455
Fixes gchq#463
Fixes gchq#479
Fixes gchq#482
Fixes gchq#483
Fixes gchq#485
Fixes gchq#486
Fixes gchq#487
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants