gchq / gchq/CyberChef

Feature request: RSA Decrypt, output hex

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

Description

**Is your feature request related to a problem? Please describe.**
Using the "RSA Decrypt" operation, it gives an error when converting to UTF8, however I'm interested in the raw bytes

![image](https://github.com/gchq/CyberChef/assets/5888506/a319a406-e608-4b5d-8bb1-f0f30878e49a)

**Describe the solution you'd like**
Add an option to output hex,
![image](https://github.com/gchq/CyberChef/assets/5888506/36822405-382c-4773-88d9-34d7e851f245)

https://github.com/gchq/CyberChef/blob/master/src/core/operations/RSADecrypt.mjs#L78
`forge.util.bytesToHex(dMsg)` will give the hex value

Contributor guide

Open the contributing guide

Research direction

Start with src/core/operations/RSADecrypt.mjs at the referenced line and inspect how the decrypted message is currently converted to UTF8. Add the requested option for hexadecimal output, using the issue's forge.util.bytesToHex reference, and verify that raw decrypted bytes can be represented as hex without the UTF8 conversion error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cryptography
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.