<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/loz2donil" -->

---
title: A Case Study in Solving the Riddle of FrancisTRDEV
description: A developer documents building DecipherLM, an LLM-based Caesar cipher solver for a mixed-shift cryptographic riddle posted on dev.to. The solution evolved...
canonical: https://daily.dev/posts/loz2donil
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A Case Study in Solving the Riddle of FrancisTRDEV | daily.dev
og:description: A developer documents building DecipherLM, an LLM-based Caesar cipher solver for a mixed-shift cryptographic riddle posted on dev.to. The solution evolved...
og:url: https://daily.dev/posts/loz2donil
og:image: https://api.daily.dev/og/posts/lOz2donIL.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A Case Study in Solving the Riddle of FrancisTRDEV

**[Debajyati Dey](https://daily.dev/sources/5zahwgrigj4y3vq3jilbs)** · [@debajyatidey](https://daily.dev/debajyatidey) · 8 upvotes · 0 comments

## Summary

A developer documents building DecipherLM, an LLM-based Caesar cipher solver for a mixed-shift cryptographic riddle posted on dev.to. The solution evolved through four phases: a failed global master key approach, a noisy line-by-line scoring attempt, a consensus/mode-based trusted pool strategy, and finally a contextual history scoring method. Using Qwen2.5-0.5B for perplexity scoring with a rolling context buffer of previous decrypted lines, the system achieved 100% accuracy. The post compares GPT-2, SmolLM2-135M, SmolLM2-360M, and Qwen2.5-0.5B, finding that bigger models aren't always better for character-level cryptographic noise. Full working Python code is included.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/ddebajyati/a-case-study-in-solving-the-riddle-of-francistrdev-2c1i>

## Similar posts on daily.dev

- [I tried a new 8B local LLM, and its design might be the biggest shift since DeepSeek R1](https://daily.dev/posts/i-tried-a-new-8b-local-llm-and-its-design-might-be-the-biggest-shift-since-deepseek-r1-cbw5y6q98) · XDA Developers · 0 upvotes · 0 comments
- [How to Build Models Without Language, with Logical Intelligence](https://daily.dev/posts/how-to-build-models-without-language-with-logical-intelligence-ii06zfny1) · ByteByteGo · 25 upvotes · 3 comments

---

Tags: [#cryptography](https://daily.dev/tags/cryptography), [#llm](https://daily.dev/tags/llm), [#python](https://daily.dev/tags/python), [#qwen](https://daily.dev/tags/qwen)

[View this post on daily.dev](https://daily.dev/posts/loz2donil)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/loz2donil","headline":"A Case Study in Solving the Riddle of FrancisTRDEV","text":"Shared: A Case Study in Solving the Riddle of FrancisTRDEV","url":"https://daily.dev/posts/loz2donil","datePublished":"2026-04-05T05:30:03.702Z","dateModified":"2026-04-30T02:17:57.636Z","author":{"@type":"Person","name":"Debajyati Dey","url":"https://daily.dev/debajyatidey","image":"https://avatars.githubusercontent.com/u/127122455?v=4","description":"Web developer, Technical Writer \u0026 Deep Learning Engineer","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":31450}},"image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":8},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/onv3TUJL9"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/5zahwgrigj4y3vq3jilbs","name":"Debajyati Dey"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Debajyati Dey","item":"https://daily.dev/sources/5zahwgrigj4y3vq3jilbs"},{"@type":"ListItem","position":3,"name":"A Case Study in Solving the Riddle of FrancisTRDEV"}]}
```

