gchq / gchq/CyberChef

Rsa Encrypt RAW get wrong result

Open
#2,066 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

when I use rsa encrypt with "RAW", the result is wrong when the input contains no-ascii data.
I don't know if it's nesessary to "encodeUtf8(input)", but the bug fixed when i remove it.

but when i want to pull a request, i cannot pass the unit test.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the RSA Encrypt operation with the RAW option and non-ASCII input, then inspect the existing unit test that currently fails. Compare the handling of the input with and without UTF-8 encoding; done means the RAW result is correct for non-ASCII data and the unit test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cryptography
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.