Skip to content

Conversation

@3rdit
Copy link
Contributor

@3rdit 3rdit commented Jan 21, 2026

This PR adds inline write-up viewing and web-based markdown editor for submitting solutions on the website directly with a preview feature. I've added XOR encryption ("obfuscation") to prevent scraping that could cause problems with SEO.

The downloadable archive remains available as a fallback for every solution.

The main additions are a new solution view page at /solution/<hexid> that renders markdown content inline, and a web editor at /upload/solution/<hexid>/editor with live preview and character count validation. A new crypto service handles the obfuscation, and the reviewer approval flow now extracts markdown content from uploads and zips to create the obfuscated .bin files served to the users.

On the frontend, the solution pages use DOMPurify and marked.js for safe client-side markdown rendering, with copy buttons on code blocks. The crackme and user profile pages now link to the new view page instead of directly to the zip download.

This is quite a change so I will keep this draft to iron out any possible issues during further testing and post @xusheng6's review.

Closes #99

@3rdit 3rdit requested a review from xusheng6 January 21, 2026 00:37
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.

Support viewing the writeups on the site directly

2 participants