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
28.66k stars 3.22k forks source link

Bug report: ROT13 does not rotate numbers properly #1886

Open AaronStiff opened 1 month ago

AaronStiff commented 1 month ago

The ROT13 operation does not seem to correctly rotate numbers.

To reproduce:

  1. Enter 1 as input
  2. Add the ROT13 operation to the recipe
  3. Set rotation amount to -1

Expected result is 0, but actual result is 6

Compare with the way this decoder handles number rotation.