securisec / chepy

Chepy is a python lib/cli equivalent of the awesome CyberChef tool.
GNU General Public License v3.0
934 stars 54 forks source link

Trying to load recipe but get KeyError: #22

Closed otrh closed 2 years ago

otrh commented 2 years ago

Describe the bug A clear and concise description of what the bug is. Do keep in mind that Chepy is attempting to provide functionality that a web app does, which makes it difficult at times to work with certain types of user input. I was trying to load a recipe but when i ran the script it gave me error :File "C:\Users\[REDACTED]\AppData\Local\Programs\Python\Python310\lib\site-packages\chepy\core.py", line 980, in load_recipe function = recipe["function"] KeyError: 'function

To Reproduce my script: import chepy from chepy import Chepy print ( Chepy("Hello World") .load_recipe("C:\Users\[REDACTED]\test.recipe") .o )

Expected behavior it to print the encrypted "Hello world"

Desktop (please complete the following information):

Additional context I am using a recipe from the cyberchef website so that might be the issue?

securisec commented 2 years ago

Yes, cyberchef and chepy recipes are not interchangeable. That is the issue.