Posts  / #POST-042174
REDDIT

High School Assignment: RSA Encryption in Python

L
Mar 2, 2025 · 23:48

I got an assignment in Computer class to code a functioning RSA program/script in Python. The thing is, I have no idea how. My class has never programmed with Python, and just setting it up on my computer was a difficult task.

I've got the basics behind the mathematics of RSA encryption down, but I'm at an absolute loss on how to implement them in a functional Python script. My teacher wasn't of much help when I tried to seek advice from him & told me to ask ChatGPT instead, which.... Great. Doesn't help me at all. I've tried to orient myself with this [video,](https://youtu.be/D_PfV_IcUdA?si=lFORlsRiCHnVUo1H) but, again, I can't fully grasp & implement the code in Python.

Can anyone help me out? It doesn't have to be anything complicated, just something that I can actually understand myself & functionally implement. It would be of immense help

Post image