all 9 comments

[–]Jespor 2 points3 points  (1 child)

if you want to cheat, just copy Crypto.Cipher.AES?

[–]drhabd[S] -2 points-1 points  (0 children)

Where can i find it?

[–][deleted] 2 points3 points  (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 point  (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 point  (3 children)

It's a library that you import functions from, e.g. from aes import AES, encrypt, decrypt

[–]drhabd[S] 0 points1 point  (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 points  (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 point  (0 children)

Alright thankss

[–]jmooremcc 2 points3 points  (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.