> For the complete documentation index, see [llms.txt](https://writeups.ayweth20.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://writeups.ayweth20.com/2021/dvctf-to-join-davincicode/crypto/baby-rsa.md).

# Baby RSA

**Category:** Crypto - **Points:** 10 - **Solves:** 41\
**Description:** Wow, this time I can't compute the the private key! Or can I?

**Infos:**

> N= 0x25b8f38aed4a22b31dde75e46e276d0d\
> e= 0x10001\
> ct= 0x10891034ce51c23bfe2f7bf29a62938e

**Solution:**\
To solve this challenge you need to calculate the p and q parameters for the RSA key.\
To do this you need to decompose the N value in prime factor. For this, the following website is great: [Prime Factor Calculator](https://www.dcode.fr/decomposition-nombres-premiers#:~:text=Qu%27est%20ce%20que%20la,un%20produit%20de%20nombres%20premiers)\
After having calculated the 2 parameters (*p: 5665192965464669089 and q: 8850847341676960237*), you can go to the following website to calculate the RSA key: [RSA Calculator](https://www.dcode.fr/rsa-cipher)\
Once on this website, you can enter the informations in the right places and the FLAG will be calculated automatically.

<details>

<summary>🚩 FLAG</summary>

```
DVC{f4c70rDB}
```

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://writeups.ayweth20.com/2021/dvctf-to-join-davincicode/crypto/baby-rsa.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
