AES cryptography implementation with Python | Complete Intermediate Tutorial

preview_player
Показать описание
AES or Advanced Encryption System is a cryptographic algorithm that is widely used now a days. When I wanted to implement it within python, there existed a very few resources about it and each one of them was somehow incomplete. So I took the liberty to make one for the sake of teaching the whole process.

What is better in this tutorial?
1) A random key is not generated like an ideal method, but a real user key/password is taken in
2) Padding is used with complete and separate explanation behind using it
3) The differences between Hashing and Encryption/Decryption are explained
4) 2 Modes, Cipher Block Chain and Electronic Code Block are explained
5) Initialization vector concepts explained
6) Hashing used for the key that can be implemented in real world

Modules : Pycryptodome or you can use Pycrypto
That's all you need
Рекомендации по теме
Комментарии
Автор

Your analogy for ECB around 14:00 is outright wrong. ECB will produce the same result if the plain is the same *for the same block*. If bytes within the plain are similar the results are not similar.

ThefamousMrcroissant
Автор

Hey man just wanted to thank you for taking the time and going step by step. Really helped me understand some code I found lying around the web.

guitsgarcia
Автор

very helpful video, I understand AES encryption fully now. Thank you.

jup
Автор

Thanks for making this video. it will help me in my masters in terms of assignment.

vishvarajparmar
Автор

So informative !! I wish you could’ve shown asymmetric decryption using public private keys of these aes keys

nimrahamza
Автор

Wow amazing video. Thank you very much. From VietNam

hopnguyen
Автор

Excellent job, I understood perfectly!

larissaalfaro
Автор

I may have misunderstood the code but from what i can see you do not encrypt in a fixed blocksize, yes you use padding and if the message is 16 bytes or less then its perfect but if its more than 16, the padding will make it 32 or 48 etc... and so when you send it to the encrypt function you send the message in multiples of 16, not in actual 16 bytes unless the encrypt function divides the input into groups of 16 which i cant tell since I dont know how its written.
if im wrong please correct me, other then that your video was very helpful so thank you!
also if you could upload a video explaining how AES works, and i mean truly works not just the idea behind it, it would be great or maybe send me a link to one. i wrote my own RSA encryption programm and im trying to do the same with AES but i havent found a good tutorial/explanation video on it.

praxis
Автор

Whoa was about to give up on cryptography because I couldn't find good explaination on certain Cryptography Algorithms on the internet, just scripts.
But your video was very helpful and had very good explanations also.Thank You.Very much.

BTW, you could 'encrypt' (hash) your password with the 'hashlib' module (if you are more comfortable/familar with it) before encrypting your text with the encrypted password.
example:
password_key = hashlib.sha256([password variable].encode()).digest()

That will give you the password in bytes or 'UTF-8 format not hash.
You will need the password in byte or 'UTF-8' format to encrypt the data(I Think)

PS: Can you also make a video on The 'AES CBM Mode' Algorithm.Please.

BTW:Can you only encrypt your password with SHA256 or can i use any hashing algorithm under the sun.

xxanonymous
Автор

i tried to implement steganography with cryptography i am facing an issue, i tried to solve it around a week but not getting anywhere, can you please help me with that

yashkumarshukla
Автор

Hey bro! I am writing a small blog on cryptography, i found your video very helpful. Can i give link to this video on my blog page ?

sarveshgupta
Автор

Great tutorial, thanks!
But what if the string that we have to encrypt already contains "{"? How can we be sure that the pad_index is correct?

dbrn
Автор

AES stands for Advanced Encryption Standard, not System. Good video though :)

Laflamablanca
Автор

I want to watch flip a game nothing but a boring

satchithananthamgobinath
welcome to shbcf.ru