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: CipherSaber2 decrypt fails the tests on http://ciphersaber.gurus.org/

i4kp3e opened this issue · comments

Describe the bug
The implementation of CipherSaber2 decrypt fails to decode a test message published on http://ciphersaber.gurus.org/.

There are a handful of test vectors on the ciphersaber homepage. The CyberChef2_decrypt implementation fails to decode any of them.

For example the input

    6f 6d 0b ab f3 aa 67 19 03 15 30 ed b6 77 ca 74 e0 08 9d d0 
    e7 b8 85 43 56 bb 14 48 e3 7c db ef e7 f3 a8 4f 4f 5f b3 fd 

decrypted with key="asdfg",rounds=1 is supposed to produce text, but it produces garbage.

Would be nice to use the "official" test vectors as unit tests to ensure interoperability.

To Reproduce

  • Version: 10.8.0
  • Compile time: 18/02/2024 03:55:04 UTC
  • User-Agent:
    Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
  • Link to reproduce

Expected behaviour
The ciphersaber homepage promises a text file:

This is a short text file encrypted with "asdfg" as the user key.

So I expected human readable English text to be produced by this test input, and not garbage.