gchq / CyberChef

The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

Home Page:https://gchq.github.io/CyberChef

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug report: Jump and Conditional Jump counter not reset with multiple uses in same recipe

mattnotmax opened this issue · comments

Describe the bug
When using the jump or conditional jump operation more than once in a recipe, the jump counter is not reset mean incorrect values are required to be used to successfully decode data.

To Reproduce
Create text with the following:
two rounds encoding Base85
four rounds encoding Base64

image

To decode you would use the following recipe:

image

However, as the counter is not reset, you need to actually have the second jump set to 4 rather than 1, which will then successfully decode the data.

Expected behaviour
The jump counter should reset after each use so the value starts from zero.

Desktop (if relevant, please complete the following information):

  • Version: 9.37.3
  • Compile time: 14/04/2022 17:10:14 UTC
  • User-Agent:
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36

Original Encoded data
Vkd0UmVHRldRblJOVlVwVlVqSk9NbFZHVmxKalZrWTJWR3RHVDJGdWFHRlhWazU2WkZaUmQySklhRmhXUm14d1ZqRlNVMWxWTVhCa1JVNXJVak5OY2xreFl6RlhSa0pGVFZkU1MxSlhPVFJWYkZreFpXMVNSMDlFU21wV2F6VTJWbGh3U21Ock1WUlViRXBQWVdwUk1GZFliRnBsVm13MlUxYzVhV0ZyU2sxVmJGSXdUVVUxY1U1V1ZrOVdSVlo1V2tWV2JtSldaRlJsU0d4cFlUQTFTRlZ0ZUZKUVVUMDk=

Additional context
Thanks in advance for your assistance! Keep up the great work please!