Skip to content

feat: add to fullwidth operation#2251

Open
tdawn0-0 wants to merge 2 commits intogchq:masterfrom
tdawn0-0:feature/add-to-fullwidth-operation
Open

feat: add to fullwidth operation#2251
tdawn0-0 wants to merge 2 commits intogchq:masterfrom
tdawn0-0:feature/add-to-fullwidth-operation

Conversation

@tdawn0-0
Copy link
Copy Markdown

This PR adds a new To Fullwidth operation to CyberChef.
It converts ASCII halfwidth characters into their Unicode fullwidth equivalents, while preserving non-ASCII characters unchanged. Spaces are converted to U+3000, and printable ASCII characters are mapped to the corresponding fullwidth code points.
Halfwidth and Fullwidth Forms - wikipedia
This operation is useful for security testing and Unicode normalization analysis, especially when validating how different components such as frontend filters, proxies, WAFs, and backend frameworks process non-ASCII input. It also helps generate reproducible test cases for character handling, normalization behavior, and parsing consistency.
Unit tests are included for basic ASCII conversion, space handling, mixed-content input, and preservation of non-ASCII characters.
This is my first contribution to CyberChef, so thank you for reviewing it. If there is anything I should revise to better match the project’s conventions or expectations, I would greatly appreciate the guidance. Please excuse anything I may have overlooked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant