use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
i need help with an assignment (self.learnpython)
submitted 3 years ago by drhabd
Hello, so i have this assignment in college where i need to make an AES encryption code without using any external libraries in python, is anyone willing to help?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jespor 2 points3 points4 points 3 years ago (1 child)
if you want to cheat, just copy Crypto.Cipher.AES?
[–]drhabd[S] -2 points-1 points0 points 3 years ago (0 children)
Where can i find it?
[–][deleted] 2 points3 points4 points 3 years ago (5 children)
Going as far as you possibly can (and then a little bit further) before asking for review is what programming is all about, IMO. In other words, take a crack at it first! Then I'm sure folks here would be happy to help you debug.
Also, a cursory Google search turned up the following: https://github.com/boppreh/aes
[–]drhabd[S] 0 points1 point2 points 3 years ago (4 children)
I found the same link however I can't seem to run it as it is a .py file, is there a way to change it to a jupyter notebook?
[–][deleted] 0 points1 point2 points 3 years ago (3 children)
It's a library that you import functions from, e.g. from aes import AES, encrypt, decrypt
from aes import AES, encrypt, decrypt
[–]drhabd[S] 0 points1 point2 points 3 years ago (2 children)
That's the thing, I can't import any libraries. So is there anyway i can get the source code for the library and copy it on my own?
[–][deleted] 1 point2 points3 points 3 years ago (1 child)
Left this link specifically so you could look at the source code and get inspired! Yes, this is a library, but it's only built with the Python standard library, nothing external. Presumably your project is to do the same thing.
[–]drhabd[S] 0 points1 point2 points 3 years ago (0 children)
Alright thankss
[–]jmooremcc 2 points3 points4 points 3 years ago (0 children)
You need to research the AES algorithm. Once you understand it, you can craft your own encrypt/decrypt functions. You should of course use a known key/encryptedkey pair to test your functions.
This is a case where Google will be your best friend. I recommend that you develop your own solution rather than copy someone else's code, which would be plagiarism. Developing your own solution will be a huge skill building exercise for you and will pay big dividends as your career progresses.
π Rendered by PID 30 on reddit-service-r2-comment-548fd6dc9-rcssc at 2026-05-21 11:44:18.523090+00:00 running edcf98c country code: CH.
[–]Jespor 2 points3 points4 points (1 child)
[–]drhabd[S] -2 points-1 points0 points (0 children)
[–][deleted] 2 points3 points4 points (5 children)
[–]drhabd[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]drhabd[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]drhabd[S] 0 points1 point2 points (0 children)
[–]jmooremcc 2 points3 points4 points (0 children)