Skip to content

Bug report: Substitute producing invalid results with punctuation #2009

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

Open
ryantheleach opened this issue Apr 1, 2025 · 0 comments
Open
Labels

Comments

@ryantheleach
Copy link

Describe the bug
When using substitution, cyberchef is unable to produce the following decrypted ciphertext.

.-_ should become, _.- but instead becomes _-_ and warns that the ciphertext and plaintext are different.

To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

https://gchq.github.io/CyberChef/#recipe=Substitute('.-_','_.-',true)&input=Li1f

Expected behaviour

I expect the output _.-

Screenshots

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant