AND bitwise operation using hexadecimal key issue
- Dominant language
- JavaScript
- Stars
- 35.8k
- Forks
- 4.1k
- Avg merge
- 2d 26m
- Merged PRs (30d)
- 33
Description
**Describe the bug**
When using the following recipe: https://gchq.github.io/CyberChef/#recipe=From_Decimal('Space',false)To_Binary('Space',8)AND(%7B'option':'Hex','string':'0F'%7D)From_Binary('Space',8)&input=MjU1&oeol=VT
the result should be 15 but "Data is not a valid byteArray: [null]" is displayed.
Same with: https://gchq.github.io/CyberChef/#recipe=From_Decimal('Space',false)To_Binary('Space',8)AND(%7B'option':'Binary','string':'00001111'%7D)From_Binary('Space',8)&input=MjU1&oeol=VT
Is there an issue or am I doing something wrong 🤔 ?
Contributor guide
Research direction
Start by replaying the two linked CyberChef recipes with input 255 and compare the hexadecimal and binary AND variants. Trace the AND operation and the following From_Binary step to identify where the invalid byteArray is produced; done means both recipes produce 15 without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100