gchq / gchq/CyberChef

Operation request: Bencode

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

Description

## Summary

https://en.m.wikipedia.org/wiki/Bencode

### Example Input

**Bencode Encoding Example:**

Encoded Integer: `i42e`
Encoded String: `13:Hello, Bencode!`
Encoded List: `li1ei2ei3ee`
Encoded Dictionary: `d4:agei30e4:name5:Alicee`

### Example Output

**Decoded Values:**

Decoded Integer: `42`
Decoded String: `Hello, Bencode!`
Decoded List: `[1, 2, 3]`
Decoded Dictionary: `{'age': 30, 'name': 'Alice'}`

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is identified in the issue. Start with the Bencode reference and the provided encoding and decoding examples, then locate CyberChef's operation and test conventions. Done means the requested operation handles the shown integer, string, list, and dictionary examples in both directions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.